Skip to content

Commit 0b828ee

Browse files
Amith YamasaniAndroid (Google) Code Review
authored andcommitted
Merge "Set the correct flags for brightness dialog to show on all users" into jb-mr1-dev
2 parents 4ce82df + 7ecdc7f commit 0b828ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/SystemUI/src/com/android/systemui/statusbar/phone/QuickSettings.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,8 +771,8 @@ public void onDismiss(DialogInterface dialog) {
771771
});
772772

773773
mBrightnessDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
774-
mBrightnessDialog.getWindow().addFlags(
775-
WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS);
774+
mBrightnessDialog.getWindow().getAttributes().privateFlags |=
775+
WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS;
776776
mBrightnessDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
777777
}
778778
if (!mBrightnessDialog.isShowing()) {

0 commit comments

Comments
 (0)