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

Commit f80dc3cd authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Change window type of Media Projection dialog" into sc-v2-dev am: 9811421e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16663773

Change-Id: I6ab6df79d82f1b4388925bce79c56e28f111642e
parents 3f52d48d 9811421e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -159,7 +159,9 @@ public class MediaProjectionPermissionActivity extends Activity
        mDialog.getButton(DialogInterface.BUTTON_POSITIVE).setFilterTouchesWhenObscured(true);

        final Window w = mDialog.getWindow();
        w.setType(WindowManager.LayoutParams.TYPE_SYSTEM_ALERT);
        // QS is not closed when pressing CastTile. Match the type of the dialog shown from the
        // tile.
        w.setType(WindowManager.LayoutParams.TYPE_KEYGUARD_DIALOG);
        w.addSystemFlags(SYSTEM_FLAG_HIDE_NON_SYSTEM_OVERLAY_WINDOWS);

        mDialog.show();