summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Julia Reynolds <juliacr@google.com> 2020-05-01 13:20:26 -0400
committer Julia Reynolds <juliacr@google.com> 2020-05-01 17:56:58 +0000
commit1809052d2a872da7660878d621746e645f8952c5 (patch)
tree2f6f3443d10a877176adf5a57ace64b4bef21e29
parent7e17bc6496506838f20c0880cb83167d268153e3 (diff)
Make ManagedServices intents immutable
Test: make Fixes: 154917989 Change-Id: Ic0198a1e09408713f234cf8b901b1b117d734afb
-rw-r--r--services/core/java/com/android/server/notification/ManagedServices.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/notification/ManagedServices.java b/services/core/java/com/android/server/notification/ManagedServices.java
index fad0a7db6c4e..8bb7c0f530e4 100644
--- a/services/core/java/com/android/server/notification/ManagedServices.java
+++ b/services/core/java/com/android/server/notification/ManagedServices.java
@@ -1312,7 +1312,7 @@ abstract public class ManagedServices {
intent.putExtra(Intent.EXTRA_CLIENT_LABEL, mConfig.clientLabel);
final PendingIntent pendingIntent = PendingIntent.getActivity(
- mContext, 0, new Intent(mConfig.settingsAction), 0);
+ mContext, 0, new Intent(mConfig.settingsAction), PendingIntent.FLAG_IMMUTABLE);
intent.putExtra(Intent.EXTRA_CLIENT_INTENT, pendingIntent);
ApplicationInfo appInfo = null;