Loading packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java +9 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ public class KeyguardViewManager { private boolean mScreenOn = false; private LockPatternUtils mLockPatternUtils; private int mPanelOrientation = 0; private KeyguardUpdateMonitorCallback mBackgroundChanger = new KeyguardUpdateMonitorCallback() { @Override Loading Loading @@ -106,6 +107,8 @@ public class KeyguardViewManager { mViewManager = viewManager; mViewMediatorCallback = callback; mLockPatternUtils = lockPatternUtils; mPanelOrientation = SystemProperties.getInt("persist.panel.orientation", 0) / 90; } /** Loading @@ -117,6 +120,12 @@ public class KeyguardViewManager { boolean enableScreenRotation = shouldEnableScreenRotation(); if(mPanelOrientation != 0) { // override the enableScreen Rotation value, if the panel // orientation is not portrait. enableScreenRotation = false; } maybeCreateKeyguardLocked(enableScreenRotation, false, options); maybeEnableScreenRotation(enableScreenRotation); Loading policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -435,6 +435,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { int mOverscanRight = 0; int mOverscanBottom = 0; // Panel Orientation default portrait int mPanelOrientation = Surface.ROTATION_0; // What we do when the user long presses on home private int mLongPressOnHomeBehavior; Loading Loading @@ -1024,6 +1027,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { return; } mDisplay = display; mPanelOrientation = SystemProperties.getInt("persist.panel.orientation", 0) / 90; final Resources res = mContext.getResources(); int shortSize, longSize; Loading Loading @@ -4586,7 +4591,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (preferredRotation >= 0) { return preferredRotation; } return Surface.ROTATION_0; return mPanelOrientation; } } } Loading Loading
packages/Keyguard/src/com/android/keyguard/KeyguardViewManager.java +9 −0 Original line number Diff line number Diff line Loading @@ -79,6 +79,7 @@ public class KeyguardViewManager { private boolean mScreenOn = false; private LockPatternUtils mLockPatternUtils; private int mPanelOrientation = 0; private KeyguardUpdateMonitorCallback mBackgroundChanger = new KeyguardUpdateMonitorCallback() { @Override Loading Loading @@ -106,6 +107,8 @@ public class KeyguardViewManager { mViewManager = viewManager; mViewMediatorCallback = callback; mLockPatternUtils = lockPatternUtils; mPanelOrientation = SystemProperties.getInt("persist.panel.orientation", 0) / 90; } /** Loading @@ -117,6 +120,12 @@ public class KeyguardViewManager { boolean enableScreenRotation = shouldEnableScreenRotation(); if(mPanelOrientation != 0) { // override the enableScreen Rotation value, if the panel // orientation is not portrait. enableScreenRotation = false; } maybeCreateKeyguardLocked(enableScreenRotation, false, options); maybeEnableScreenRotation(enableScreenRotation); Loading
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -435,6 +435,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { int mOverscanRight = 0; int mOverscanBottom = 0; // Panel Orientation default portrait int mPanelOrientation = Surface.ROTATION_0; // What we do when the user long presses on home private int mLongPressOnHomeBehavior; Loading Loading @@ -1024,6 +1027,8 @@ public class PhoneWindowManager implements WindowManagerPolicy { return; } mDisplay = display; mPanelOrientation = SystemProperties.getInt("persist.panel.orientation", 0) / 90; final Resources res = mContext.getResources(); int shortSize, longSize; Loading Loading @@ -4586,7 +4591,7 @@ public class PhoneWindowManager implements WindowManagerPolicy { if (preferredRotation >= 0) { return preferredRotation; } return Surface.ROTATION_0; return mPanelOrientation; } } } Loading