package Ġcom . j ep pe man . jet pack playground . home . presentation Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġcom . j ep pe man . jet pack playground . Main Application Ċ import Ġcom . j ep pe man . jet pack playground . common . presentation . Base Activity Ċ import Ġcom . j ep pe man . jet pack playground . common _ features . Feature Manager Ċ import Ġcom . j ep pe man . jet pack playground . common _ features . Home Feature Ċ import Ġcom . j ep pe man . jet pack playground . common _ features . get Feature Ċ import Ġcom . j ep pe man . jet pack playground . home . R Ċ Ċ class ĠHome Activity Ġ: ĠBase Activity () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġapp Component Ġget () Ġ= Ġ( application Ġas ĠMain Application ). app Component ĊĠĠĠ Ġprivate Ġval Ġfeature Manager : ĠFeature Manager Ġby Ġlazy Ġ{ Ġapp Component . feature Manager Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( R . layout . activity _ home ) ĊĊĠĠĠĠĠĠĠ Ġif Ġ( savedInstanceState Ġ== Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġfeature Ġ= Ġfeature Manager . get Feature < Home Feature , ĠHome Feature . Dependencies >( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġdependencies Ġ= Ġapp Component . home Feature Dependencies ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) Ġ?: Ġthrow ĠIllegalStateException (" Could Ġnot Ġretrieve Ġvideo Ġfeature ") ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġsupport FragmentManager . beginTransaction () ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. add ( R . id . fragment Container , Ġfeature . get Main Screen ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. commit () ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ }