diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-12-07 14:56:51 -0800 |
---|---|---|
committer | The Android Automerger <android-build@android.com> | 2011-12-07 16:42:14 -0800 |
commit | 185d0e7f0a843b3fd0cd6696a01b19d21de85693 (patch) | |
tree | ef63c1de6e4b4b7415379dd5b32e157a43674c26 | |
parent | 260fdd35c3d8d37b52b1a82f3f9e35d285ec94c6 (diff) | |
download | base-ics-mr0-release.tar.gz |
More fixing for issue #5366535: Lockscreen has wrong layout...android-4.0.2_r1ics-mr0-release
...but corrects itself
Change upgrade window to not allow the device to rotate while it is shown.
Change-Id: I75b126ab8806b84a0351e2706ebea10570bde575
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 0a77654f916c..dd0bb191dd5c 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -3376,6 +3376,9 @@ public class PhoneWindowManager implements WindowManagerPolicy { WindowManager.LayoutParams.FLAG_DIM_BEHIND | WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN); mBootMsgDialog.getWindow().setDimAmount(1); + WindowManager.LayoutParams lp = mBootMsgDialog.getWindow().getAttributes(); + lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR; + mBootMsgDialog.getWindow().setAttributes(lp); mBootMsgDialog.setCancelable(false); mBootMsgDialog.show(); } |