Skip to content

Commit 6f02671

Browse files
committed
Lock game to landscape mode
Resolves #5
1 parent f992e0a commit 6f02671

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

android/src/main/AndroidManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
com.gamemaker.game
33
-->
44
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
5+
xmlns:tools="http://schemas.android.com/tools"
56
android:installLocation="auto"
67
android:versionCode="1"
78
android:versionName="devel">
@@ -71,11 +72,13 @@
7172
<activity
7273
android:name="MainActivity"
7374
android:alwaysRetainTaskState="true"
75+
android:screenOrientation="sensorLandscape"
7476
android:configChanges="layoutDirection|locale|orientation|uiMode|screenLayout|screenSize|smallestScreenSize|keyboard|keyboardHidden|navigation"
7577
android:exported="true"
7678
android:label="@string/app_name"
7779
android:launchMode="singleInstance"
78-
android:preferMinimalPostProcessing="true">
80+
android:preferMinimalPostProcessing="true"
81+
tools:ignore="DiscouragedApi">
7982

8083
<!-- Let Android know that we can handle some USB devices and should receive this event -->
8184
<intent-filter>

0 commit comments

Comments
 (0)