Skip to content

Commit b32785c

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "More fixing for issue #5366535: Lockscreen has wrong layout..." into ics-mr0
2 parents eee1241 + d9efb95 commit b32785c

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)