Merge "Add mutable flag to uninstaller pending intent"

This commit is contained in:
TreeHugger Robot
2020-10-21 23:11:55 +00:00
committed by Android (Google) Code Review

View File

@@ -339,8 +339,9 @@ public class UninstallerActivity extends Activity {
broadcastIntent.putExtra(UninstallFinish.EXTRA_APP_LABEL, label);
broadcastIntent.putExtra(UninstallFinish.EXTRA_UNINSTALL_ID, uninstallId);
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, uninstallId,
broadcastIntent, PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent pendingIntent =
PendingIntent.getBroadcast(this, uninstallId, broadcastIntent,
PendingIntent.FLAG_MUTABLE | PendingIntent.FLAG_UPDATE_CURRENT);
NotificationManager notificationManager = getSystemService(NotificationManager.class);
NotificationChannel uninstallingChannel = new NotificationChannel(UNINSTALLING_CHANNEL,