Skip to content

Commit

Permalink
More fixing for issue #5366535: Lockscreen has wrong layout...
Browse files Browse the repository at this point in the history
...but corrects itself

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

Change-Id: I75b126ab8806b84a0351e2706ebea10570bde575
  • Loading branch information
Dianne Hackborn authored and The Android Automerger committed Dec 8, 2011
1 parent 260fdd3 commit 185d0e7
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -3376,6 +3376,9 @@ public void showBootMessage(final CharSequence msg, final boolean always) {
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();
}
Expand Down

0 comments on commit 185d0e7

Please sign in to comment.