package Ġcom . it gon ca . rent it . ui Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . activity . view Models Ċ import Ġandroidx . navigation . Nav Controller Ċ import Ġandroidx . navigation . Navigation Ċ import Ġandroidx . navigation . ui . Navigation UI Ċ import Ġcom . it gon ca . rent it . R Ċ import Ġcom . it gon ca . rent it . databinding . Activity Main Binding Ċ import Ġcom . it gon ca . rent it . ui . base . Base Activity Ċ import Ġcom . it gon ca . rent it . ui . view model . Login ViewModel Ċ import Ġcom . it gon ca . rent it . utils . extension . hide StatusBar Ċ import Ġcom . it gon ca . rent it . utils . view . Loader Dialog Ċ import Ġdagger . h ilt . android . Android EntryPoint Ċ Ċ @ Suppress (" DE PREC ATION ") Ċ @ Android EntryPoint Ċ class ĠMainActivity Ġ: ĠBase Activity () Ġ{ ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġbinding : ĠActivity Main Binding ĊĠĠĠ Ġprivate Ġval ĠviewModel : ĠLogin ViewModel Ġby Ġview Models () ĊĠĠĠ Ġprivate Ġvar Ġnav Controller : ĠNav Controller ? Ġ= Ġnull ĊĠĠĠ Ġprivate Ġvar Ġdialog Loader : ĠLoader Dialog ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġbinding Ġ= ĠActivity Main Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( binding . root ) ĊĠĠĠĠĠĠĠ Ġinit Components () ĊĠĠĠĠĠĠĠ ĠviewModel . is Session Active () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġinit Components (){ ĊĠĠĠĠĠĠĠ Ġdialog Loader Ġ= ĠLoader Dialog . newInstance () ĊĠĠĠĠĠĠĠ Ġnav Controller Ġ= ĠNavigation . find Nav Controller ( this , ĠR . id . nav Host Container ) ĊĠĠĠĠĠĠĠ ĠNavigation UI . setup With Nav Controller ( binding . bottom Nav , nav Controller !! ) ĊĠĠĠĠĠĠĠ Ġhide StatusBar () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġis Show Loader ( is Show : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( is Show ) ĊĠĠĠĠĠĠĠĠĠĠ Ġdialog Loader ?. show ( support FragmentManager ," Loader ") ĊĠĠĠĠĠĠĠ Ġelse ĊĠĠĠĠĠĠĠĠĠĠĠ Ġdialog Loader ?. dismiss () ĊĠĠĠ Ġ} Ċ }