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

Commit e0e595d2 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make Battery Saver notification PendingIntent immutable." into rvc-dev

parents 621db815 10c9d118
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -838,7 +838,8 @@ public class BatterySaverStateMachine {
        Intent intent = new Intent(intentAction);
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
        PendingIntent batterySaverIntent = PendingIntent.getActivity(
                mContext, 0 /* requestCode */, intent, PendingIntent.FLAG_UPDATE_CURRENT);
                mContext, 0 /* requestCode */, intent,
                PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT);
        final String title = res.getString(titleId);
        final String summary = res.getString(summaryId);