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

Commit 2f6b9be5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Change-Id: I426587dc847b93feec4394c9f5d78135888afc86
parents d716be26 e0e595d2
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);