`BackHandler` seems to not intercept system back p...
# compose
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