OSDN Git Service

More fixing for issue #5366535: Lockscreen has wrong layout...
authorDianne Hackborn <hackbod@google.com>
Wed, 7 Dec 2011 22:56:51 +0000 (14:56 -0800)
committerDianne Hackborn <hackbod@google.com>
Wed, 7 Dec 2011 22:56:51 +0000 (14:56 -0800)
...but corrects itself

Change upgrade window to not allow the device to rotate while it is shown.

Change-Id: I75b126ab8806b84a0351e2706ebea10570bde575

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

index 0a77654..dd0bb19 100755 (executable)
@@ -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();
                 }