deckerst / aves

Aves is a gallery and metadata explorer app, built for Android with Flutter.
BSD 3-Clause "New" or "Revised" License
2.77k stars 106 forks source link

Enable predictive back gesture support (android 14+) #1241

Open rayyanmm opened 1 month ago

rayyanmm commented 1 month ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

No, it is not a major problem, it is just a feature to help integrate with newer versions of android that's all. It is very minor and I understand that you may have "bigger fish to fry" as they say.

Describe the solution you'd like A clear and concise description of what you want to happen.

in AndroidManifest.xml, in the tag, set the android:enableOnBackInvokedCallback flag to true.

<application
    ...
    android:enableOnBackInvokedCallback="true"
    ... >
...
</application>

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

No alternatives

Additional context Add any other context or screenshots about the feature request here.

link to android developer page explaining this feature: https://developer.android.com/guide/navigation/custom-back/predictive-back-gesture

deckerst commented 1 month ago

Actually I've already looked into it and made the necessary changes in Aves, but there's a last hurdle at the framework level. I'm waiting to see the next release from the framework to decide what to do next.