Fixed Samsung multiwindow mode, apps can be started at any order now

This commit is contained in:
pelya
2015-01-01 22:53:14 +02:00
parent f482591bea
commit 8834abfcd3
6 changed files with 166 additions and 7 deletions

View File

@@ -1276,6 +1276,8 @@ public class MainActivity extends Activity
void setScreenOrientation()
{
if( !Globals.AutoDetectOrientation && getIntent().getBooleanExtra(RestartMainActivity.ACTIVITY_AUTODETECT_SCREEN_ORIENTATION, false) )
Globals.AutoDetectOrientation = true;
if( Globals.AutoDetectOrientation )
{
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LOCKED);