瀏覽代碼

Fixed bug #13794: prevent to use the onBackPressed callback API that is enabled on API36

Sylvain 2 周之前
父節點
當前提交
26d6352500
共有 2 個文件被更改,包括 2 次插入0 次删除
  1. 1 0
      android-project/app/src/main/AndroidManifest.xml
  2. 1 0
      test/android/cmake/AndroidManifest.xml.cmake

+ 1 - 0
android-project/app/src/main/AndroidManifest.xml

@@ -71,6 +71,7 @@
         android:icon="@mipmap/ic_launcher"
         android:allowBackup="true"
         android:theme="@style/AppTheme"
+        android:enableOnBackInvokedCallback="false"
         android:hardwareAccelerated="true" >
 
         <!-- Example of setting SDL hints from AndroidManifest.xml:

+ 1 - 0
test/android/cmake/AndroidManifest.xml.cmake

@@ -44,6 +44,7 @@
         android:label="@string/label"
         android:supportsRtl="true"
         android:theme="@style/AppTheme"
+        android:enableOnBackInvokedCallback="false"
         android:hardwareAccelerated="true">
         <activity
             android:name="@[email protected]"