Fix crash after changing device language
The app was restarting unexpectedly due to missing configChanges flags. Added "locale|layoutDirection" to AndroidManifest.xml to prevent activity recreation.
This commit is contained in:
@ -46,7 +46,7 @@
|
|||||||
android:excludeFromRecents="false"
|
android:excludeFromRecents="false"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:screenOrientation="landscape"
|
android:screenOrientation="landscape"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
android:configChanges="layoutDirection|locale|orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
||||||
android:resizeableActivity="false"
|
android:resizeableActivity="false"
|
||||||
tools:ignore="UnusedAttribute" >
|
tools:ignore="UnusedAttribute" >
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".GodotEditor"
|
android:name=".GodotEditor"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
android:configChanges="layoutDirection|locale|orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
||||||
android:exported="true"
|
android:exported="true"
|
||||||
android:icon="@mipmap/themed_icon"
|
android:icon="@mipmap/themed_icon"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
@ -59,7 +59,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".GodotGame"
|
android:name=".GodotGame"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
android:configChanges="layoutDirection|locale|orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:icon="@mipmap/ic_play_window"
|
android:icon="@mipmap/ic_play_window"
|
||||||
android:label="@string/godot_game_activity_name"
|
android:label="@string/godot_game_activity_name"
|
||||||
@ -74,7 +74,7 @@
|
|||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".embed.EmbeddedGodotGame"
|
android:name=".embed.EmbeddedGodotGame"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
android:configChanges="layoutDirection|locale|orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
||||||
android:exported="false"
|
android:exported="false"
|
||||||
android:icon="@mipmap/ic_play_window"
|
android:icon="@mipmap/ic_play_window"
|
||||||
android:label="@string/godot_game_activity_name"
|
android:label="@string/godot_game_activity_name"
|
||||||
@ -87,7 +87,7 @@
|
|||||||
android:screenOrientation="userLandscape" />
|
android:screenOrientation="userLandscape" />
|
||||||
<activity
|
<activity
|
||||||
android:name=".GodotXRGame"
|
android:name=".GodotXRGame"
|
||||||
android:configChanges="orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
android:configChanges="layoutDirection|locale|orientation|keyboardHidden|screenSize|smallestScreenSize|density|keyboard|navigation|screenLayout|uiMode"
|
||||||
android:process=":GodotXRGame"
|
android:process=":GodotXRGame"
|
||||||
android:launchMode="singleTask"
|
android:launchMode="singleTask"
|
||||||
android:icon="@mipmap/ic_play_window"
|
android:icon="@mipmap/ic_play_window"
|
||||||
|
|||||||
Reference in New Issue
Block a user