package Ġapp . en velop . ui Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġapp . en velop . App Ċ import Ġapp . en velop . common . di . Activity Component Ċ import Ġapp . en velop . common . di . Activity Module Ċ import Ġapp . en velop . ui . common . Activity Result Ċ import Ġapp . en velop . ui . common . Finish Ċ import Ġapp . en velop . ui . common . System Bars . set System Bars Style Ċ import Ġapp . en velop . ui . common . to Activity Result Ċ import Ġio . reactivex . subjects . Publish Subject Ċ Ċ abstract Ġclass ĠBase Activity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠ Ġval Ġcomponent : ĠActivity Component Ġby Ġlazy Ġ{ ĊĠĠĠ Ġ( application Ġas ĠApp ). component . plus ( Activity Module ( this )) ĊĠ Ġ} ĊĊĠ Ġprotected Ġval Ġresults Ġ= ĠPublish Subject . create < Activity Result >() ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ Ġwindow . set System Bars Style ( this ) ĊĠ Ġ} ĊĊĠ Ġ@ Suppress (" DE PREC ATION ") ĊĠ Ġoverride Ġfun Ġon Activity Result ( request Code : ĠInt , ĠresultCode : ĠInt , Ġdata : ĠIntent ?) Ġ{ ĊĠĠĠ Ġsuper . on Activity Result ( request Code , ĠresultCode , Ġdata ) ĊĠĠĠ Ġresults . onNext ( Activity Result ( request Code , ĠresultCode , Ġdata )) ĊĠ Ġ} ĊĊĠ Ġprotected Ġfun Ġfinish ( finish : ĠFinish ) Ġ{ ĊĠĠĠ Ġset Result ( finish . result . to Activity Result ()) ĊĠĠĠ Ġfinish () ĊĠ Ġ} Ċ } Ċ