diff options
| author | 2020-05-08 14:14:25 -0400 | |
|---|---|---|
| committer | 2020-05-08 14:14:25 -0400 | |
| commit | d7f2b7d67adb093325348bcb750552a8fe1f8831 (patch) | |
| tree | 3391c61f4aa2aec9fb4f4681dfc677e0b7b1974e | |
| parent | 4963e51f974ca1fad8fde39f6c0e9e0676605fd8 (diff) | |
Make DND intent immutable
Test: make
Fixes: 155642026
Change-Id: Ia7d650005a7f4214698aba38cacf4ae69b741bdf
| -rw-r--r-- | services/core/java/com/android/server/notification/ZenModeHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/notification/ZenModeHelper.java b/services/core/java/com/android/server/notification/ZenModeHelper.java index d862e4f6cdaa..a490b9c99bb4 100644 --- a/services/core/java/com/android/server/notification/ZenModeHelper.java +++ b/services/core/java/com/android/server/notification/ZenModeHelper.java @@ -1369,7 +1369,7 @@ public class ZenModeHelper { .setContentTitle(mContext.getResources().getString(title)) .setContentText(mContext.getResources().getString(content)) .setContentIntent(PendingIntent.getActivity(mContext, 0, onboardingIntent, - PendingIntent.FLAG_UPDATE_CURRENT)) + PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE)) .setAutoCancel(true) .setLocalOnly(true) .addExtras(extras) |