bluelinelabs / Conductor

A small, yet full-featured framework that allows building View-based Android applications
Apache License 2.0
3.9k stars 343 forks source link

Android 14 a partly 13 will break back navigation ! #671

Closed ursusursus closed 1 year ago

ursusursus commented 2 years ago

We need to start working on the new behavior, otherwise whole library will be broken on those targeting 13 and for all on 14+

Activity.onBackPressed won't be called anymore. Library will need to tell framework ahead of time if it will take 'back' over

https://developer.android.com/about/versions/13/features/predictive-back-gesture#migrate-androidx

EricKuck commented 2 years ago

The best way to handle this is being evaluated now. Support will definitely be added.

ursusursus commented 1 year ago

Android 14 is in preview now, is there any update please?

EricKuck commented 1 year ago

Work on this is being done on the v4 branch. Hasn't been tested in production yet, but it's been very stable so far in dev.

EricKuck commented 1 year ago

This is now available in the newly published 4.0-preview-1 release. It's been tested in prod and appears to be very stable. It is only named preview because of potential API changes ahead of a formal 4.0 release.