Skip to content

Commit 7ecdc7f

Browse files
author
Amith Yamasani
committed
Set the correct flags for brightness dialog to show on all users
Earlier fix was writing to the wrong flags. Bug: 7393822 Change-Id: Ifd51fb30de00be6de381980a05f2769c4283b515
1 parent 39c6526 commit 7ecdc7f

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)