Commit 8b766ba4 by bachinger Committed by Oliver Woodman

Use FLAG_UPDATE_CURRENT for PendingIntents of playback commands.

ISSUE: #5734
PiperOrigin-RevId: 242459668
parent 47601980
...@@ -1265,7 +1265,7 @@ public class PlayerNotificationManager { ...@@ -1265,7 +1265,7 @@ public class PlayerNotificationManager {
Intent intent = new Intent(action).setPackage(context.getPackageName()); Intent intent = new Intent(action).setPackage(context.getPackageName());
intent.putExtra(EXTRA_INSTANCE_ID, instanceId); intent.putExtra(EXTRA_INSTANCE_ID, instanceId);
return PendingIntent.getBroadcast( return PendingIntent.getBroadcast(
context, instanceId, intent, PendingIntent.FLAG_CANCEL_CURRENT); context, instanceId, intent, PendingIntent.FLAG_UPDATE_CURRENT);
} }
@SuppressWarnings("nullness:argument.type.incompatible") @SuppressWarnings("nullness:argument.type.incompatible")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment