Dismiss keyguard for brightness QS tile.
Bugreport, too. Bug: 7296769 Change-Id: I28b2f1cf4a1bf2ebfcff37a6188f33a44b7d2165
This commit is contained in:
@@ -732,6 +732,10 @@ class QuickSettings {
|
||||
mBrightnessDialog.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
|
||||
}
|
||||
if (!mBrightnessDialog.isShowing()) {
|
||||
try {
|
||||
WindowManagerGlobal.getWindowManagerService().dismissKeyguard();
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
mBrightnessDialog.show();
|
||||
dismissBrightnessDialog(mBrightnessDialogLongTimeout);
|
||||
}
|
||||
@@ -770,6 +774,10 @@ class QuickSettings {
|
||||
builder.setCancelable(true);
|
||||
final Dialog dialog = builder.create();
|
||||
dialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
|
||||
try {
|
||||
WindowManagerGlobal.getWindowManagerService().dismissKeyguard();
|
||||
} catch (RemoteException e) {
|
||||
}
|
||||
dialog.show();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user