package Ġcom . atan ana . s ico unter . screens . history Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroid . view . Menu Ċ import Ġandroid . view . MenuItem Ċ import Ġandroid . widget . TextView Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġcom . atan ana . s ico unter . R Ċ import Ġcom . atan ana . s ico unter . databinding . Activity History Binding Ċ import Ġorg . k oin . android . ext . android . inject Ċ import Ġorg . k oin . android . scope . Android Scope Component Ċ import Ġorg . k oin . android x . scope . activity Scope Ċ import Ġorg . k oin . core . scope . Scope Ċ Ċ class ĠHistory Activity Ġ: ĠAppCompatActivity (), ĠHistory View , ĠAndroid Scope Component Ġ{ ĊĊĠĠĠ Ġoverride Ġval Ġscope : ĠScope Ġby Ġactivity Scope () ĊĊĠĠĠ Ġprivate Ġval Ġhistory Presenter : ĠHistory Presenter Ġby Ġinject () ĊĊĠĠĠ Ġprivate Ġlateinit Ġvar Ġview Binding : ĠActivity History Binding ĊĊĠĠĠ Ġoverride Ġval Ġhistory : ĠTextView ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġview Binding . content . history Content ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠĠĠĠĠ Ġview Binding Ġ= ĠActivity History Binding . inflate ( layout Inflater ) ĊĠĠĠĠĠĠĠ ĠsetContentView ( view Binding . root ) ĊĠĠĠĠĠĠĠ Ġset Support ActionBar ( view Binding . toolbar ) ĊĠĠĠĠĠĠĠ Ġsupport ActionBar ?. set Display Home As Up Enabled ( true ) ĊĠĠĠĠĠĠĠ Ġhistory Presenter . load History () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun ĠonCreate Options Menu ( menu : ĠMenu ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġmenu Inflater . inflate ( R . menu . menu _ history , Ġmenu ) ĊĠĠĠĠĠĠĠ Ġreturn Ġtrue ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġon Options ItemSelected ( item : ĠMenuItem ): ĠBoolean Ġ= ĊĠĠĠĠĠĠĠ Ġhistory Presenter . on Options ItemSelected ( item . itemId ) Ġ|| Ġsuper . on Options ItemSelected ( item ) Ċ } Ċ