Avoid switch from landscape to portrait during bootstrap

This commit is contained in:
Gabriel Calero 2018-04-26 11:49:28 -03:00
parent 2673a06d6f
commit f9fc549e7d
3 changed files with 5 additions and 2 deletions

View file

@ -47,7 +47,6 @@
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation"
android:name=".InterfaceActivity"
android:label="@string/app_name"
android:screenOrientation="landscape"
android:launchMode="singleTop"
>
@ -72,6 +71,7 @@
<activity
android:name=".SplashActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Translucent.NoActionBar" />
</application>

View file

@ -128,6 +128,9 @@ public class InterfaceActivity extends QtActivity {
@Override
protected void onStart() {
super.onStart();
if (!isLoading) {
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
}
nativeEnterForeground();
}

View file

@ -5,7 +5,7 @@
android:id="@+id/root_activity_splash"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent">
android:background="@color/backgroundLight">
<!-- TODO -->