mirror of
https://github.com/overte-org/overte.git
synced 2025-06-23 12:39:54 +02:00
Avoid switch from landscape to portrait during bootstrap
This commit is contained in:
parent
2673a06d6f
commit
f9fc549e7d
3 changed files with 5 additions and 2 deletions
|
@ -47,7 +47,6 @@
|
||||||
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
|
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
|
||||||
android:name=".InterfaceActivity"
|
android:name=".InterfaceActivity"
|
||||||
android:label="@string/app_name"
|
android:label="@string/app_name"
|
||||||
android:screenOrientation="landscape"
|
|
||||||
android:launchMode="singleTop"
|
android:launchMode="singleTop"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
@ -72,6 +71,7 @@
|
||||||
|
|
||||||
<activity
|
<activity
|
||||||
android:name=".SplashActivity"
|
android:name=".SplashActivity"
|
||||||
|
android:screenOrientation="portrait"
|
||||||
android:theme="@style/Theme.AppCompat.Translucent.NoActionBar" />
|
android:theme="@style/Theme.AppCompat.Translucent.NoActionBar" />
|
||||||
</application>
|
</application>
|
||||||
|
|
||||||
|
|
|
@ -128,6 +128,9 @@ public class InterfaceActivity extends QtActivity {
|
||||||
@Override
|
@Override
|
||||||
protected void onStart() {
|
protected void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
|
if (!isLoading) {
|
||||||
|
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
|
||||||
|
}
|
||||||
nativeEnterForeground();
|
nativeEnterForeground();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
android:id="@+id/root_activity_splash"
|
android:id="@+id/root_activity_splash"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:background="@android:color/transparent">
|
android:background="@color/backgroundLight">
|
||||||
|
|
||||||
<!-- TODO -->
|
<!-- TODO -->
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue