Merge "Revert "Specify explicitly FLAG_IMMUTABLE for PendingIntent""

This commit is contained in:
Mill Chen
2020-11-20 07:39:41 +00:00
committed by Android (Google) Code Review

View File

@@ -124,7 +124,7 @@ public class BatteryTipUtils {
throws StatsManager.StatsUnavailableException {
final Intent extraIntent = new Intent(context, AnomalyDetectionReceiver.class);
final PendingIntent pendingIntent = PendingIntent.getBroadcast(context, REQUEST_CODE,
extraIntent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
extraIntent, PendingIntent.FLAG_UPDATE_CURRENT);
statsManager.setBroadcastSubscriber(pendingIntent,
StatsManagerConfig.ANOMALY_CONFIG_KEY, StatsManagerConfig.SUBSCRIBER_ID);
}