aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWally Yau <wyau@google.com>2021-07-12 18:31:15 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-07-12 18:31:15 +0000
commitaf550ae3a967fabd865259a1a76a953ba40b52dd (patch)
treef3b83727e120cc8fe898c5b216081ef989d20670
parenta8fef73500e47e6065c717690b8743cab2d19402 (diff)
parentef5fcde2af952fcef7e1caa624922a5b73b6b16d (diff)
downloadTV-af550ae3a967fabd865259a1a76a953ba40b52dd.tar.gz
Add FLAG_IMMUTABLE to implicit PendingIntent am: 4762f27374 am: f724f14898 am: e7b4ffb232 am: ef5fcde2af
Original change: https://android-review.googlesource.com/c/platform/packages/apps/TV/+/1761905 Change-Id: Icea2d5e6e5a415d5dd023d1e1420a2c99a0d55d6
-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 =