package Ġco . mo el ten . samp lify Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . appcompat . app . AppCompatActivity Ċ import Ġco . mo el ten . samp lify . App Component Provider . injector Ċ import Ġcom . we alth front . mage ll an . compose . Screen Ċ import Ġcom . we alth front . mage ll an . compose . lifecycle . attach To Activity Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠMainActivity Ġ: ĠAppCompatActivity () Ġ{ ĊĊĠ Ġ@ Inject Ġlateinit Ġvar Ġroot Screen : ĠScreen ĊĊĠ Ġoverride Ġfun ĠonCreate ( savedInstanceState : ĠBundle ?) Ġ{ ĊĠĠĠ Ġsuper . onCreate ( savedInstanceState ) ĊĠĠĠ Ġinjector ?. inject ( this ) ĊĠĠĠ ĠsetContentView ( R . layout . activity _ main ) ĊĠĠĠ Ġroot Screen . attach To Activity ( this , ĠR . id . mage ll an Container ) ĊĠ Ġ} ĊĊĠ Ġoverride Ġfun Ġon Back Pressed () Ġ{ ĊĠĠĠ Ġif Ġ(! root Screen . back Pressed ()) Ġ{ ĊĠĠĠĠĠ Ġsuper . on Back Pressed () ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ