Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ec2bc4e authored by Bernardo Rufino's avatar Bernardo Rufino
Browse files

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
parent ec0354cc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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();