Thread
#compose
    pawegio

    pawegio

    1 year ago
    BackHandler
    seems to not intercept system back presses on
    AppCompatActivity
    restart in my case (in nested
    NavHost
    composables). Is it a known issue? 🤔
    Adam Powell

    Adam Powell

    1 year ago
    Not that I've heard so far. Please file an issue on the tracker with a repro case if you can isolate it
    pawegio

    pawegio

    1 year ago
    i

    Ian Lake

    1 year ago
    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
    pawegio

    pawegio

    1 year ago
    @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

    Ian Lake

    1 year ago
    Thanks for confirming, we'll take a look