aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWally Yau <wyau@google.com>2021-07-12 18:10:49 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-07-12 18:10:49 +0000
commite7b4ffb232e400a8257b7da1e9dec80c4820e8e4 (patch)
treef3b83727e120cc8fe898c5b216081ef989d20670
parent7c3ba23d88b77de7fcd6151fe95efec08de43f6b (diff)
parentf724f148987c687ca7244a34da5109a24e64b391 (diff)
downloadTV-e7b4ffb232e400a8257b7da1e9dec80c4820e8e4.tar.gz
Add FLAG_IMMUTABLE to implicit PendingIntent am: 4762f27374 am: f724f14898
Original change: https://android-review.googlesource.com/c/platform/packages/apps/TV/+/1761905 Change-Id: I3dd531d7307ea651c40da1c1f99613688e91fa46
-rw-r--r--src/com/android/tv/recommendation/NotificationService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/tv/recommendation/NotificationService.java b/src/com/android/tv/recommendation/NotificationService.java
index 1652bd77..870b3c10 100644
--- a/src/com/android/tv/recommendation/NotificationService.java
+++ b/src/com/android/tv/recommendation/NotificationService.java
@@ -437,7 +437,8 @@ public class NotificationService extends Service
Intent intent = new Intent(Intent.ACTION_VIEW, channel.getUri());
intent.putExtra(TUNE_PARAMS_RECOMMENDATION_TYPE, mRecommendationType);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
- final PendingIntent notificationIntent = PendingIntent.getActivity(this, 0, intent, 0);
+ final PendingIntent notificationIntent = PendingIntent.getActivity(this, 0, intent,
+ PendingIntent.FLAG_IMMUTABLE);
// This callback will run on the main thread.
Bitmap largeIconBitmap =