Skip to content

Commit fc72cc4

Browse files
authored
Remove screenOrientation to comply with Google Play suggestions. Ensure app is able to resize in Android 16+ devices.
1 parent bee2cd3 commit fc72cc4

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

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

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,19 @@
6666
<meta-data android:name="{{ m.split('=', 1)[0] }}" android:value="{{ m.split('=', 1)[-1] }}"/>{% endfor %}
6767
<meta-data android:name="wakelock" android:value="{% if args.wakelock %}1{% else %}0{% endif %}"/>
6868

69-
<activity android:name="{{args.android_entrypoint}}"
70-
android:label="@string/app_name"
71-
android:resizeableActivity="true"
72-
android:supportsPictureInPicture="true"
73-
android:exported="true"
74-
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 %}"
76-
android:windowSoftInputMode="adjustResize">
77-
{% if args.activity_launch_mode %}
78-
android:launchMode="{{ args.activity_launch_mode }}"
79-
{% endif %}
80-
>
69+
<activity android:name="{{ args.android_entrypoint }}"
70+
android:label="@string/app_name"
71+
android:resizeableActivity="true"
72+
android:supportsPictureInPicture="true"
73+
android:exported="true"
74+
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 %}"
76+
android:windowSoftInputMode="adjustResize"
77+
android:screenOrientation="unspecified">
78+
{% if args.activity_launch_mode %}
79+
android:launchMode="{{ args.activity_launch_mode }}"
80+
{% endif %}
81+
>
8182

8283
<intent-filter>
8384
{% if args.launcher %}

0 commit comments

Comments
 (0)