diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2021-08-31 10:49:27 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2021-08-31 10:51:20 -0700 |
commit | 7ff5163b2d35c86705b64bf11f853e4f4ee656e2 (patch) | |
tree | 0fbccecd6cf83a88ce03069fbda3924cb1461c7d | |
parent | d95a81b72059f49bcd6f392e2e44588d10d7aba2 (diff) | |
download | base-7ff5163b2d35c86705b64bf11f853e4f4ee656e2.tar.gz |
[DO NOT MERGE] Fixing unsafe pending intent in notification
Bug: 173025705
Test: Manual
Change-Id: I37e807fffe9ad67caa93a91d5e350350514989ab
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationModeController.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationModeController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationModeController.java index 4d7cf2715f9c..5934974b119f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationModeController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationModeController.java @@ -399,7 +399,8 @@ public class NavigationModeController implements Dumpable { .setStyle(new Notification.BigTextStyle()) .setSmallIcon(R.drawable.ic_info) .setAutoCancel(true) - .setContentIntent(PendingIntent.getActivity(context, 0, new Intent(), 0)); + .setContentIntent(PendingIntent.getActivity(context, 0, new Intent(), + PendingIntent.FLAG_IMMUTABLE)); context.getSystemService(NotificationManager.class).notify(TAG, 0, builder.build()); } |