libre-tube / LibreTube

An alternative frontend for YouTube, for Android.
https://libretube.dev
GNU General Public License v3.0
8.78k stars 446 forks source link

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

Open rayyanmm opened 1 month ago

rayyanmm commented 1 month ago

Describe your suggested feature

its such a minor enhancement and this should be labeled low priority.

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

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

Other details

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

Acknowledgements

Bnyro commented 1 month ago

That's already set to true, but the app would need a lot of additional modifications to properly support predictive back gestures.