diff options
Diffstat (limited to 'src/com/android/launcher2/Launcher.java')
-rw-r--r-- | src/com/android/launcher2/Launcher.java | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 648791d3c..e5c62add7 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -3316,20 +3316,16 @@ public final class Launcher extends Activity return oriMap[(d.getRotation() + indexOffset) % 4]; } - public void lockScreenOrientationOnLargeUI() { - if (LauncherApplication.isScreenLarge()) { - setRequestedOrientation(mapConfigurationOriActivityInfoOri(getResources() - .getConfiguration().orientation)); - } + public void lockScreenOrientation() { + setRequestedOrientation(mapConfigurationOriActivityInfoOri(getResources() + .getConfiguration().orientation)); } - public void unlockScreenOrientationOnLargeUI() { - if (LauncherApplication.isScreenLarge()) { - mHandler.postDelayed(new Runnable() { - public void run() { - setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); - } - }, mRestoreScreenOrientationDelay); - } + public void unlockScreenOrientation() { + mHandler.postDelayed(new Runnable() { + public void run() { + setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED); + } + }, mRestoreScreenOrientationDelay); } /* Cling related */ |