`BackHandler` seems to not intercept system back presses on `AppCompatActivity` restart in my case (...
p
BackHandler
seems to not intercept system back presses on
AppCompatActivity
restart in my case (in nested
NavHost
composables). Is it a known issue? ๐Ÿค”
a
Not that I've heard so far. Please file an issue on the tracker with a repro case if you can isolate it
p
i
Do you still see this issue after upgrading to Activity Compose 1.3.0-alpha04? There was a fix to
BackHandler
in today's release. https://developer.android.com/jetpack/androidx/releases/activity#1.3.0-alpha04
p
@Ian Lake Unfortunately, itโ€™s still an issue in the newest version. ๐Ÿ˜• The only workaround for me is to invalidate navigation on lifecycle restart (recreate back stack and navigate to current route using back stack entries). Then it works, but itโ€™s quite ugly.
i
Thanks for confirming, we'll take a look
๐Ÿ‘ 1