Gabriel
03/11/2021, 8:32 PMAppCompatActivity ? It's what's in the default when creating a new composeJohn O'Reilly
03/11/2021, 8:34 PMComponentActivity now....also, since beta2 I don't believe compose has appcompat dependency any more as wellGabriel
03/11/2021, 8:35 PMSam
03/11/2021, 9:02 PMclass MainActivity: AppCompatActivity() {
where is there an example of the new approach?Ian Lake
03/11/2021, 9:08 PMAppCompatActivity extends FragmentActivity which extends ComponentActivity. If you don't need AppCompat (i.e. for styling Android Views) and you don't need Fragments (because you're in Compose), then you can use ComponentActivity, which has all of the hooks you need for a Compose only appSam
03/11/2021, 9:12 PMIan Lake
03/11/2021, 9:13 PMSam
03/11/2021, 9:14 PMIan Lake
03/11/2021, 9:19 PMitnoles
03/12/2021, 12:37 AM