PipNotification: Add FLAG_IMMUTABLE

Fixes breakage caused by b/160794467

Bug: 176870313
Bug: 176912389
Test: SystemUI can start again.
Change-Id: Ib726a829f693111fb201e41e0bac870df4280087
This commit is contained in:
Robin Lee
2021-01-06 19:45:27 +01:00
parent 5797051388
commit 7a391fbc79

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);
}
}