Skip to content

Commit 276e1e6

Browse files
committed
Also add screenSize to android:configChanges in AndroidManifest.xml if API version >= 13
1 parent 1300391 commit 276e1e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pythonforandroid/bootstraps/sdl2/build/templates/AndroidManifest.tmpl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
<activity android:name="org.kivy.android.PythonActivity"
6565
android:label="@string/app_name"
66-
android:configChanges="keyboardHidden|orientation"
66+
android:configChanges="keyboardHidden|orientation{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
6767
android:screenOrientation="{{ args.orientation }}"
6868
>
6969
<intent-filter>

pythonforandroid/bootstraps/webview/build/templates/AndroidManifest.tmpl.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
<activity android:name="org.kivy.android.PythonActivity"
5959
android:label="@string/app_name"
60-
android:configChanges="keyboardHidden|orientation"
60+
android:configChanges="keyboardHidden|orientation{% if args.min_sdk_version >= 13 %}|screenSize{% endif %}"
6161
android:screenOrientation="{{ args.orientation }}"
6262
>
6363
<intent-filter>

0 commit comments

Comments
 (0)