From 7a391fbc79a76c76ddad0f9dad50baaa3daee7d2 Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Wed, 6 Jan 2021 19:45:27 +0100 Subject: [PATCH] PipNotification: Add FLAG_IMMUTABLE Fixes breakage caused by b/160794467 Bug: 176870313 Bug: 176912389 Test: SystemUI can start again. Change-Id: Ib726a829f693111fb201e41e0bac870df4280087 --- .../src/com/android/wm/shell/pip/tv/PipNotification.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/PipNotification.java b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/PipNotification.java index 4e0ab668be816..5716c7fc71624 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/PipNotification.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/PipNotification.java @@ -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); } }