Merge "Fix PendingIntent CanceledException exception"

This commit is contained in:
Raff Tsai
2019-11-13 00:55:27 +00:00
committed by Android (Google) Code Review

View File

@@ -164,7 +164,7 @@ public class MediaOutputSlice implements CustomSliceable {
intent.putExtra(MEDIA_DEVICE_ID, id); intent.putExtra(MEDIA_DEVICE_ID, id);
intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND); intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
return PendingIntent.getBroadcast(context, requestCode /* requestCode */, intent, return PendingIntent.getBroadcast(context, requestCode /* requestCode */, intent,
PendingIntent.FLAG_CANCEL_CURRENT); PendingIntent.FLAG_UPDATE_CURRENT);
} }
@Override @Override