Marko Novakovic
11/22/2021, 4:04 PMDon't keep activities
is turned on and am using Navigation Component
when I navigate to dialog composable that is registered inside NavGraph
with dialog() {}
it’s not on top after I leave app and come back
how can I make it be on top after process death?
is there a way for Navigation Component
to do that or I need to keep track of that and navigate to dialog
destination after app is restored?Ian Lake
11/22/2021, 4:38 PMMarko Novakovic
11/22/2021, 4:40 PMandroidcactus
11/23/2021, 9:52 PMMarko Novakovic
11/24/2021, 9:01 AMMarko Novakovic
11/24/2021, 9:44 AMandroidcactus
11/24/2021, 10:33 AMIan Lake
11/25/2021, 1:37 AMAlertDialog
inside a dialog
destination, that doesn't make any sense at all. A dialog
destination puts the content of your composable in its own managed Dialog
instanceIan Lake
11/25/2021, 1:38 AMdialog
documentation specifically points this out and specifically points out that you shouldn't use a dialog
destination for AlertDialog
(instead, just show that AlertDialog
directly): https://developer.android.com/reference/kotlin/androidx/navigation/compose/package-summary#(androidx.navigation.NavGra[…]roperties,kotlin.Function1)Ian Lake
11/25/2021, 1:39 AMTextButton
directly in the dialog
destination, you'll find that you just get the single dialog
managed Dialog
with your contentMarko Novakovic
11/25/2021, 8:55 AMTextButton
but it still works the same, it’s not on the top when I come back from process deathMarko Novakovic
11/25/2021, 8:56 AM