am 6e3212a3: Merge "Fix 3329600: Always enable screen rotation in lockscreen." into honeycomb

* commit '6e3212a38b503e35563ec93c35a6851c99d95c77':
  Fix 3329600: Always enable screen rotation in lockscreen.
This commit is contained in:
Jim Miller
2011-01-17 20:00:14 -08:00
committed by Android Git Automerger

View File

@@ -114,14 +114,12 @@ public class KeyguardViewManager implements KeyguardWindowController {
lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN; lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN;
lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen; lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen;
if (mContext.getResources().getBoolean(R.bool.config_enableLockScreenRotation)) { // TODO: Sometimes we get the wrong value for the sensor resource we use to configure
Log.d(TAG, "Rotation sensor for lock screen On!"); // this. However, the current UI design has LockScreen always respond to orientation so
lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR; // we don't need this for the time-being.
} else { //
Log.d(TAG, "Rotation sensor for lock screen Off!"); // For reference, the configuration variable is R.bool.config_enableLockScreenRotation
lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR; lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_SENSOR;
}
lp.setTitle("Keyguard"); lp.setTitle("Keyguard");
mWindowLayoutParams = lp; mWindowLayoutParams = lp;