Files
Le Philousophe 8295272cd2 ANDROID: Fix long-press on back button handling on Android 14 and 15
The onBack events in these versions are emulated from the OnBackInvokedCallback
So, enable the OnBackAnimationCallback handler as soon as it's available.
Use a stylable value for that and make it depend on API level 34+.
2025-11-06 08:47:04 +01:00

13 lines
533 B
XML

<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Android 33 introduced the enableOnBackInvokedCallback with gesture based navigation.
Sadly the implementation is incomplete before Android 34 to detect long presses on the back
button.
So, only enable the attribute starting with Android 34 as Android 33 works well with false.
Note: in Android 33 with gesture navigation, the long "press" on back (aka slow back gesture)
cannot be detected.
-->
<bool name="enableOnBackInvokedCallback">false</bool>
</resources>