package Ġcom . core . app . base . activity Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . View Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġandroidx . lifecycle . Lifecycle Observer Ċ import Ġcom . core . app . helper . Animation Helper Ċ import Ġcom . core . app . helper . Dialog Helper Ċ import Ġcom . core . app . helper . Navigation Helper Ċ import Ġcom . core . app . lifecycle . Base Activity Lifecycle Ċ import Ġcom . core . app . util . Broadcast Manager Ċ import Ġcom . core . app . util . Error Manager Ċ import Ġcom . core . app . util . Locale Manager Ċ import Ġcom . core . app . util . Permission Manager Ċ import Ġdagger . android . Dispatch ing Android Injector Ċ import Ġdagger . android . support . Has Support Fragment Injector Ċ import Ġio . reactivex . dis pos ables . Composite Disposable Ċ import Ġjavax . inject . Inject Ċ Ċ /** Ċ Ġ* ĠAbstract ĠActivity Ġfor Ġall ĠActiv ities Ġto Ġextend . Ċ Ġ*/ Ċ abstract Ġclass ĠBase Activity Ġ: ĠAppCompatActivity (), ĊĠĠĠĠĠĠĠ ĠBroadcast Manager . Listener , ĊĠĠĠĠĠĠĠ ĠHas Support Fragment Injector Ġ{ ĊĊĠĠĠ Ġprotected Ġabstract Ġval Ġlayout Id : ĠInt ĊĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġnavigation Helper : ĠNavigation Helper ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġdialog Helper : ĠDialog Helper ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġanimation Helper : ĠAnimation Helper ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġcomposite Disposable : ĠComposite Disposable ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġbroadcast Manager : ĠBroadcast Manager ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġerror Manager : ĠError Manager ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġpermission Manager : ĠPermission Manager ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġlifecycle Observer List : ĠSet < @ Jvm Suppress W ild cards ĠLifecycle Observer > ĊĠĠĠ Ġ@ Inject ĊĠĠĠ Ġlateinit Ġvar Ġfragment Injector : ĠDispatch ing Android Injector < Fragment > ĊĊĠĠĠ Ġprotected Ġvar Ġroot View : ĠView ? Ġ= Ġnull ĊĊĠĠĠ Ġoverride Ġfun Ġattach Base Context ( new Base : ĠContext ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . attach Base Context ( Locale Manager . attach Base Context ( new Base )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Save InstanceState ( out State : ĠBundle ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . on Save InstanceState ( out State ) ĊĊĠĠĠĠĠĠĠ Ġlifecycle Observer List . forEach Ġ{ Ġ( it Ġas ? ĠBase Activity Lifecycle )?. on Save InstanceState ( out State ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĊĠĠĠĠĠĠĠ ĠonCreate View ()?. also Ġ{ Ġon View Created ( it ) Ġ} ĊĊĠĠĠĠĠĠĠ Ġlifecycle Observer List . forEach Ġ{ Ġ( it Ġas ? ĠBase Activity Lifecycle )?. onCreate ( savedInstanceState ) Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġfun ĠonCreate View (): ĠView ? Ġ= Ġwhen Ġ{ ĊĠĠĠĠĠĠĠ Ġlayout Id Ġ!= Ġ 0 Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠsetContentView ( layout Id ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠfindViewById ( android . R . id . content ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġelse Ġ-> Ġnull ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġopen Ġfun Ġon View Created ( view : ĠView ) Ġ{ ĊĠĠĠĠĠĠĠ Ġroot View Ġ= Ġview ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// Ġ= ============== ĠBroadcast Manager . Listener Ġ================================================= == ĊĊĠĠĠ Ġoverride Ġfun Ġon Receive ( context : ĠContext , Ġintent : ĠIntent ) Ġ{} ĊĊĠĠĠ Ġ// Ġ= ============== ĠHas Fragment Injector Ġ================================================= ======== ĊĊĠĠĠ Ġoverride Ġfun Ġsupport Fragment Injector () Ġ= Ġfragment Injector Ċ } Ċ