Rick Regan
01/03/2022, 9:04 PMBradleycorn
01/03/2022, 9:19 PMSplashScreenActivity
and then loads the app’s MainActivty
(where the home screen is rendered). It’s the same on both 11 and 12 (and 10 for that matter).
In regards to an explicit way to “exit” … that’s not something for which there would be a “compose way” to do it. Compose is just a set of tools for rendering UI. You’ll also not find anything in the Navigation library to do it. You’ll have to handle it yourself by calling finish()
on the Activity in response to some user interaction (say a button click on a menu item)Colton Idle
01/03/2022, 9:52 PMRick Regan
01/03/2022, 10:15 PMRick Regan
01/03/2022, 10:19 PMsavedInstanceState
(either directly, or through `rememberSaveable`~, like (presumably) Navigation Compose uses~ E_dit: not applicable since we are backing out of the root screen_) to notice it. You can check by printing savedInstanceState
and seeing that it's not null on Android 12.Rick Regan
01/03/2022, 10:27 PMColton Idle
01/03/2022, 11:37 PM