Merge "Make low storage notification PendingIntent immutable"

This commit is contained in:
Zimuzo Ezeozue
2020-12-16 15:01:21 +00:00
committed by Android (Google) Code Review

View File

@@ -472,8 +472,8 @@ public class DeviceStorageMonitorService extends SystemService {
final CharSequence details = context.getText(
com.android.internal.R.string.low_internal_storage_view_text);
PendingIntent intent = PendingIntent.getActivityAsUser(context, 0, lowMemIntent, 0,
null, UserHandle.CURRENT);
PendingIntent intent = PendingIntent.getActivityAsUser(context, 0, lowMemIntent,
PendingIntent.FLAG_IMMUTABLE, null, UserHandle.CURRENT);
Notification notification =
new Notification.Builder(context, SystemNotificationChannels.ALERTS)
.setSmallIcon(com.android.internal.R.drawable.stat_notify_disk_full)