Merge "Add FLAG_RECEIVER_FOREGROUND to run redirect intent at foreground priority" into rvc-qpr-dev am: 656867b4de

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/13136220

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5e1054e999a39a7a91ad9fa04f874b12370b8a89
This commit is contained in:
tim peng
2020-12-10 05:53:28 +00:00
committed by Automerger Merge Worker

View File

@@ -75,6 +75,7 @@ public class MediaOutputPanel implements PanelContent, LocalMediaManager.DeviceC
public static MediaOutputPanel create(Context context, String packageName) {
// Redirect to new media output dialog
context.sendBroadcast(new Intent()
.addFlags(Intent.FLAG_RECEIVER_FOREGROUND)
.setPackage(MediaOutputSliceConstants.SYSTEMUI_PACKAGE_NAME)
.setAction(MediaOutputSliceConstants.ACTION_LAUNCH_MEDIA_OUTPUT_DIALOG)
.putExtra(MediaOutputSliceConstants.EXTRA_PACKAGE_NAME, packageName));