Merge "Prevent momentary switch of keyguard to landscape" into jb-mr2-dev

This commit is contained in:
Jim Miller
2013-03-13 02:03:27 +00:00
committed by Android (Google) Code Review

View File

@@ -200,6 +200,9 @@ public class KeyguardViewManager {
stretch, stretch, type, flags, PixelFormat.TRANSLUCENT);
lp.softInputMode = WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE;
lp.windowAnimations = com.android.internal.R.style.Animation_LockScreen;
lp.screenOrientation = enableScreenRotation ?
ActivityInfo.SCREEN_ORIENTATION_USER : ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
if (ActivityManager.isHighEndGfx()) {
lp.flags |= WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED;
lp.privateFlags |=