diff --git a/res/values-sw600dp/config.xml b/res/values-sw600dp/config.xml index a701e69d17..00b2e15fc4 100644 --- a/res/values-sw600dp/config.xml +++ b/res/values-sw600dp/config.xml @@ -1,4 +1,6 @@ + true + 6 6 7 diff --git a/res/values/config.xml b/res/values/config.xml index 2a75af8466..18901255b5 100644 --- a/res/values/config.xml +++ b/res/values/config.xml @@ -2,6 +2,7 @@ true false false + false diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 5965b5cd4e..71fd278562 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -380,8 +380,10 @@ public final class Launcher extends Activity final String forceEnableRotation = SystemProperties.get(FORCE_ENABLE_ROTATION_PROPERTY, "false"); + boolean enableRotation = getResources().getBoolean(R.bool.allow_rotation); + // On large interfaces, we want the screen to auto-rotate based on the current orientation - if (LauncherApplication.isScreenLarge() || "true".equalsIgnoreCase(forceEnableRotation)) { + if (enableRotation || "true".equalsIgnoreCase(forceEnableRotation)) { setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); } }