Opt in for new predictive back gesture support in Android 13

This commit is contained in:
Cameron Gutman
2022-06-18 14:26:13 -05:00
parent 2e14002442
commit b2e605838e
2 changed files with 2 additions and 0 deletions

View File

@@ -45,6 +45,7 @@
android:installLocation="auto"
android:gwpAsanMode="always"
android:localeConfig="@xml/locales_config"
android:enableOnBackInvokedCallback="true"
android:theme="@style/AppTheme">
<provider

View File

@@ -108,6 +108,7 @@ public class HelpActivity extends Activity {
}
@Override
// NOTE: This will NOT be called on Android 13+ with android:enableOnBackInvokedCallback="true"
public void onBackPressed() {
// Back goes back through the WebView history
// until no more history remains