package Ġcom . hand y spark soft . group sg ener ator Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . WindowManager Ċ import Ġandroidx . activity . Component Activity Ċ import Ġandroidx . activity . compose . setContent Ċ import Ġandroidx . activity . view Models Ċ import Ġcom . hand y spark soft . group sg ener ator . navigation . Navigation Ċ import Ġcom . hand y spark soft . group sg ener ator . ui . Groups Generator App Ċ import Ġcom . hand y spark soft . group sg ener ator . ui . screens . detail . Detail ViewModel Ċ import Ġcom . hand y spark soft . group sg ener ator . ui . screens . generate . Generate ViewModel Ċ import Ġcom . hand y spark soft . group sg ener ator . ui . screens . main . Main ViewModel Ċ Ċ class ĠMainActivity Ġ: ĠComponent Activity () Ġ{ ĊĠĠĠ Ġprivate Ġval Ġmain ViewModel : ĠMain ViewModel Ġby Ġview Models Ġ{ ĊĠĠĠĠĠĠĠ ĠMain ViewModel . provide Factory ( App . prefs ) ĊĠĠĠ Ġ} ĊĠĠĠ Ġprivate Ġval Ġdetail ViewModel Ġby Ġview Models < Detail ViewModel >() ĊĠĠĠ Ġprivate Ġval Ġgenerate ViewModel Ġby Ġview Models < Generate ViewModel >() ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġwindow . set Soft Input Mode ( WindowManager . LayoutParams . SOFT _ INPUT _ ADJ UST _ RE SIZE ) ĊĠĠĠĠĠĠĠ Ġset Content Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠGroups Generator App Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠNavigation ( main ViewModel , Ġdetail ViewModel , Ġgenerate ViewModel ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ