Merge "[DO NOT MERGE] Fixing unsafe pending intent in notification" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
bfc095df4f
@@ -399,7 +399,8 @@ public class NavigationModeController implements Dumpable {
|
|||||||
.setStyle(new Notification.BigTextStyle())
|
.setStyle(new Notification.BigTextStyle())
|
||||||
.setSmallIcon(R.drawable.ic_info)
|
.setSmallIcon(R.drawable.ic_info)
|
||||||
.setAutoCancel(true)
|
.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());
|
context.getSystemService(NotificationManager.class).notify(TAG, 0, builder.build());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user