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

Commit c11875c0 authored by hughchen's avatar hughchen
Browse files

Add FLAG_RECEIVER_FOREGROUND flag

Bug: 129726026
Test: make -j42 RunSettingsRoboTests
Change-Id: Idf994396a5dcf78e520ff3cf7c928d4dd19b606e
parent 4eb82951
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -162,6 +162,7 @@ public class MediaOutputSlice implements CustomSliceable {
        final Intent intent = new Intent(getUri().toString());
        intent.setClass(context, SliceBroadcastReceiver.class);
        intent.putExtra(MEDIA_DEVICE_ID, id);
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        return PendingIntent.getBroadcast(context, requestCode /* requestCode */, intent,
                PendingIntent.FLAG_CANCEL_CURRENT);
    }