Make VolumeDialogImpl a trusted overlay
For go/untrusted-touches - it's drawn by sysUI.
Bug: 158002302
Bug: 175768294
Test: Click in non touchable areas inside the dialog (check bug) and
verify no toast
Change-Id: I181b95475a31f8e62bc6cca9e2c8437e76eb01d5
This commit is contained in:
@@ -259,6 +259,7 @@ public class VolumeDialogImpl implements VolumeDialog,
|
||||
| WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
|
||||
| WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH
|
||||
| WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
|
||||
mWindow.addPrivateFlags(WindowManager.LayoutParams.PRIVATE_FLAG_TRUSTED_OVERLAY);
|
||||
mWindow.setType(WindowManager.LayoutParams.TYPE_VOLUME_OVERLAY);
|
||||
mWindow.setWindowAnimations(com.android.internal.R.style.Animation_Toast);
|
||||
WindowManager.LayoutParams lp = mWindow.getAttributes();
|
||||
|
||||
Reference in New Issue
Block a user