Skip to content

Commit d9efb95

Browse files
author
Dianne Hackborn
committed
More fixing for issue #5366535: Lockscreen has wrong layout...
...but corrects itself Change upgrade window to not allow the device to rotate while it is shown. Change-Id: I75b126ab8806b84a0351e2706ebea10570bde575
1 parent d28bb28 commit d9efb95

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3376,6 +3376,9 @@ public void showBootMessage(final CharSequence msg, final boolean always) {
33763376
WindowManager.LayoutParams.FLAG_DIM_BEHIND
33773377
| WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN);
33783378
mBootMsgDialog.getWindow().setDimAmount(1);
3379+
WindowManager.LayoutParams lp = mBootMsgDialog.getWindow().getAttributes();
3380+
lp.screenOrientation = ActivityInfo.SCREEN_ORIENTATION_NOSENSOR;
3381+
mBootMsgDialog.getWindow().setAttributes(lp);
33793382
mBootMsgDialog.setCancelable(false);
33803383
mBootMsgDialog.show();
33813384
}

0 commit comments

Comments
 (0)