ソースを参照

Add configChanges to AndroidManifest.xml to prevent activity recreation

Sebastian Aigner 2 年 前
コミット
a619b994f8
1 ファイル変更2 行追加1 行削除
  1. 2 1
      androidApp/src/androidMain/AndroidManifest.xml

+ 2 - 1
androidApp/src/androidMain/AndroidManifest.xml

@@ -10,6 +10,7 @@
         android:theme="@style/Theme.AppCompat.Light.NoActionBar">
         <activity
             android:exported="true"
+            android:configChanges="orientation|screenSize|screenLayout|keyboardHidden|mnc|colorMode|density|fontScale|fontWeightAdjustment|keyboard|layoutDirection|locale|mcc|navigation|smallestScreenSize|touchscreen|uiMode"
             android:name=".MainActivity"
         >
             <intent-filter>
@@ -20,4 +21,4 @@
         </activity>
     </application>
 
-</manifest>
+</manifest>