diff options
| author | 2011-01-17 16:12:39 -0800 | |
|---|---|---|
| committer | 2011-01-17 16:12:39 -0800 | |
| commit | e28016c28620f070a6737c7fd536437e7b116f84 (patch) | |
| tree | 24dff172c990286f7d47f948d47420daa4a4ef4e | |
| parent | cf18c4788af740773c9b2720a1c4ed5f45454b8e (diff) | |
Fix 3329600: Always enable screen rotation in lockscreen.
Sometimes we get the wrong value for the sensor resource we
use to configure lockscreen orientation. However, the current
UI design has LockScreen always respond to orientation (when
enabled in settings) so we don't need to rely on this for the time-being.
Change-Id: If37314befd25a7b3306500643155523ad4fe6657
| -rw-r--r-- | policy/src/com/android/internal/policy/impl/KeyguardViewManager.java | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java b/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java index 70a4b20bb61a..32c016d8407e 100644 --- a/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java +++ b/policy/src/com/android/internal/policy/impl/KeyguardViewManager.java @@ -114,14 +114,12 @@ public class KeyguardViewManager implements KeyguardWindowController { lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN; lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen; - if (mContext.getResources().getBoolean(R.bool.config_enableLockScreenRotation)) { - Log.d(TAG, "Rotation sensor for lock screen On!"); - lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR; - } else { - Log.d(TAG, "Rotation sensor for lock screen Off!"); - lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR; - } - + // TODO: Sometimes we get the wrong value for the sensor resource we use to configure + // this. However, the current UI design has LockScreen always respond to orientation so + // we don't need this for the time-being. + // + // For reference, the configuration variable is R.bool.config_enableLockScreenRotation + lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR; lp.setTitle("Keyguard"); mWindowLayoutParams = lp; |