Skip to content

Commit db62452

Browse files
authored
Try again with orientation set to "portrait" and handle orientation with python after launch.
1 parent e51247a commit db62452

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,9 @@
7272
android:supportsPictureInPicture="true"
7373
android:exported="true"
7474
android:launchMode="{% if args.activity_launch_mode %}{{ args.activity_launch_mode }}{% else %}singleTask{% endif %}"
75-
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|fontScale|uiMode{% if args.min_sdk_version >= 8 %}|uiMode{% endif %}{% if args.min_sdk_version >= 13 %}|screenSize|smallestScreenSize{% endif %}{% if args.min_sdk_version >= 17 %}|layoutDirection{% endif %}{% if args.min_sdk_version >= 24 %}|density{% endif %}"
75+
android:configChanges="orientation|screenSize|smallestScreenSize|screenLayout|uiMode|keyboardHidden|density|layoutDirection"
7676
android:windowSoftInputMode="adjustResize"
7777
android:screenOrientation="portrait">
78-
{% if args.activity_launch_mode %}
79-
android:launchMode="{{ args.activity_launch_mode }}"
80-
{% endif %}
81-
>
8278

8379
<intent-filter>
8480
{% if args.launcher %}

0 commit comments

Comments
 (0)