Merge "PipNotification: Add FLAG_IMMUTABLE"

This commit is contained in:
TreeHugger Robot
2021-01-06 21:23:30 +00:00
committed by Android (Google) Code Review

View File

@@ -175,7 +175,7 @@ public class PipNotification {
}
private static PendingIntent createPendingIntent(Context context, String action) {
return PendingIntent.getBroadcast(context, 0,
new Intent(action), PendingIntent.FLAG_CANCEL_CURRENT);
return PendingIntent.getBroadcast(context, 0, new Intent(action),
PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE);
}
}