Skip to content

Commit ef6a2c5

Browse files
authored
Merge pull request #956 from rnixx/sdl2_orientation_fix
Add ``screenSize`` to android:configChanges in AndroidManifest.xml if API >= 13
2 parents 1300391 + 276e1e6 commit ef6a2c5

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)