Skip to content

Commit

Permalink
Add smallestScreenSize to Manifest.xml (#15763)
Browse files Browse the repository at this point in the history
  • Loading branch information
bofeng-song authored Jul 19, 2023
1 parent b21499f commit 839a086
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/android/template/app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<activity
android:name="com.cocos.game.AppActivity"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout|smallestScreenSize"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
Expand All @@ -34,7 +34,7 @@
</activity>
<activity
android:name="com.cocos.lib.CocosEditBoxActivity"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout|smallestScreenSize"
android:screenOrientation="behind"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
</application>
Expand Down
4 changes: 2 additions & 2 deletions templates/android/template/instantapp/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<activity
android:name="com.cocos.game.InstantActivity"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout|smallestScreenSize"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:launchMode="singleTask"
Expand All @@ -45,7 +45,7 @@
</activity>
<activity
android:name="com.cocos.lib.CocosEditBoxActivity"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
android:configChanges="orientation|keyboardHidden|screenSize|screenLayout|smallestScreenSize"
android:screenOrientation="behind"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />
</application>
Expand Down

0 comments on commit 839a086

Please sign in to comment.