Hey guys, how did you fix the problem with compose navigation when you click restart activity and the screen is blank?
i
Ian Lake
03/27/2021, 9:07 PM
The correct answer, as always, to file a bug if you see something unexpected and can reproduce it in a sample project
f
FunkyMuse
03/28/2021, 4:30 PM
Is there an issue regarding this? (I wasn't able to find one, but don't like to create dups)
The main thing was that the navigation-compose doesn't restore the navigation after process death, if there's no issue I'll provide a project to recreate this
i
Ian Lake
03/28/2021, 7:06 PM
Nope, it works in all of our sample projects, so file a bug.
👍 1
f
FunkyMuse
03/28/2021, 10:04 PM
Oh, it seems that the issue is with
Apply changes and restart activity, recreated it with the Owl sample, is that worked on?
FunkyMuse
03/28/2021, 10:05 PM
And for some reason apply changes (only) restarts the navigation to it's start destination
i
Ian Lake
03/28/2021, 10:06 PM
AFAIK, restarting in Android Studio doesn't do anything like a proper process death and recreation. You'd want to check with something like 'Don't keep activities' to actually simulate what the system actually does in restoring saved instance state