SimSelectNotification pending intent include an Immutable flag
Bug: 172212792 Test: atest SettingsUnitTests Change-Id: Id40e145eed1d268e8147ad21d9b9147268a20453
This commit is contained in:
@@ -226,7 +226,7 @@ public class SimSelectNotification extends BroadcastReceiver {
|
|||||||
resultIntent.setPackage(SETTINGS_PACKAGE_NAME);
|
resultIntent.setPackage(SETTINGS_PACKAGE_NAME);
|
||||||
resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent,
|
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED);
|
PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||||
builder.setContentIntent(resultPendingIntent);
|
builder.setContentIntent(resultPendingIntent);
|
||||||
NotificationManager notificationManager =
|
NotificationManager notificationManager =
|
||||||
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
(NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||||
@@ -264,7 +264,7 @@ public class SimSelectNotification extends BroadcastReceiver {
|
|||||||
resultIntent.putExtra(Settings.EXTRA_SUB_ID, subId);
|
resultIntent.putExtra(Settings.EXTRA_SUB_ID, subId);
|
||||||
resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
resultIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent,
|
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED);
|
PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||||
builder.setContentIntent(resultPendingIntent);
|
builder.setContentIntent(resultPendingIntent);
|
||||||
|
|
||||||
// Notify the notification.
|
// Notify the notification.
|
||||||
@@ -312,7 +312,7 @@ public class SimSelectNotification extends BroadcastReceiver {
|
|||||||
resultIntent.putExtra(Intent.EXTRA_TEXT, "help_uri_sim_combination_warning");
|
resultIntent.putExtra(Intent.EXTRA_TEXT, "help_uri_sim_combination_warning");
|
||||||
|
|
||||||
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent,
|
PendingIntent resultPendingIntent = PendingIntent.getActivity(context, 0, resultIntent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED);
|
PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE);
|
||||||
builder.setContentIntent(resultPendingIntent);
|
builder.setContentIntent(resultPendingIntent);
|
||||||
|
|
||||||
NotificationManager notificationManager =
|
NotificationManager notificationManager =
|
||||||
|
Reference in New Issue
Block a user