Merge "CustomSliceable.getBroadcastIntent should use FLAG_MUTABLE"

This commit is contained in:
TreeHugger Robot
2020-11-19 02:20:56 +00:00
committed by Android (Google) Code Review

View File

@@ -95,7 +95,7 @@ public interface CustomSliceable extends Sliceable {
.setData(getUri())
.setClass(context, SliceBroadcastReceiver.class);
return PendingIntent.getBroadcast(context, 0 /* requestCode */, intent,
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_MUTABLE);
}
@Override
@@ -119,4 +119,4 @@ public interface CustomSliceable extends Sliceable {
"Invalid sliceable class: " + sliceable, e);
}
}
}
}