Merge "Make low storage notification PendingIntent immutable"
This commit is contained in:
committed by
Android (Google) Code Review
commit
2a9790b42e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user