Merge "Set the correct flags for brightness dialog to show on all users" into jb-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
0b828ee0d5
@@ -771,8 +771,8 @@ class QuickSettings {
|
||||
});
|
||||
|
||||
mBrightnessDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
|
||||
mBrightnessDialog.getWindow().addFlags(
|
||||
WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS);
|
||||
mBrightnessDialog.getWindow().getAttributes().privateFlags |=
|
||||
WindowManager.LayoutParams.PRIVATE_FLAG_SHOW_FOR_ALL_USERS;
|
||||
mBrightnessDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
|
||||
}
|
||||
if (!mBrightnessDialog.isShowing()) {
|
||||
|
||||
Reference in New Issue
Block a user