Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 13ebec46 authored by Mill Chen's avatar Mill Chen
Browse files

Revert "Specify explicitly FLAG_IMMUTABLE for PendingIntent"

This reverts commit 9cbb4fa4.

Reason for revert: this change might cause NPE on Settings app.

Change-Id: I4fd5ec36941c7516a25eaff6d64bcf62e0de7b39
parent 9cbb4fa4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
    }