[DO NOT MERGE] Fixing unsafe pending intent in notification

Bug: 173025705
Test: Manual
Change-Id: I37e807fffe9ad67caa93a91d5e350350514989ab
This commit is contained in:
Sunny Goyal
2021-08-31 10:49:27 -07:00
parent d95a81b720
commit 7ff5163b2d

View File

@@ -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());
}