Merge "Change window type of Media Projection dialog" into sc-v2-dev am: 9811421e89 am: f80dc3cda4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16663773 Change-Id: Id14dbb5cb097ee4e17262d0b973c230965903dc8
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user