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

Commit 467d3fc8 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix pending intent for multi-user issue" into main

parents 081823fb 0bbf1b1c
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -959,9 +959,10 @@ public class BatterySaverStateMachine {
                .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK)
                .putExtra(EXTRA_SHOW_FRAGMENT_TITLE, highlightBundle);

        PendingIntent batterySaverIntent = PendingIntent.getActivity(
        PendingIntent batterySaverIntent = PendingIntent.getActivityAsUser(
                mContext, 0 /* requestCode */, intent,
                PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT);
                PendingIntent.FLAG_IMMUTABLE | PendingIntent.FLAG_UPDATE_CURRENT,
                null /* options */, UserHandle.CURRENT);
        final String title = res.getString(titleId);
        final String summary = res.getString(summaryId);