Afzal Najam
08/01/2020, 6:42 AMACTION_VIEW
Intent with a Uri) and then press back to come back to my compose-based app, the Composable parts aren't recomposed.
The containing activity gets onStart and onResume called as expected. Does that mean I should be creating my app in onStart instead of onCreate?
Or is there a way to detect this from within composables? I'm expecting a state change upon returning to the app, based on something that happens in the activity's onStop when the app loses focus.
Edit: Is the right way to use LiveData.observeAsState()
? It seems like that works.
StateFlow.collectAsState()
didn't work as well, seems like some weird race condition in my code.Joost Klitsie
08/04/2020, 10:35 AMAfzal Najam
08/04/2020, 8:11 PMJoost Klitsie
08/05/2020, 7:29 AMAfzal Najam
08/08/2020, 8:02 PM