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

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

Merge "Handle secondary user" into main

parents 7390f58e de8035e7
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -93,20 +93,23 @@ public class PageAgnosticNotificationService extends Service {

        // Create the PendingIntent.
        PendingIntent notifyPendingIntent =
                PendingIntent.getActivity(
                PendingIntent.getActivityAsUser(
                        this,
                        0,
                        notifyIntent,
                        PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
                        PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE,
                        null,
                        UserHandle.CURRENT);

        Intent dismissIntent = new Intent(this, Enable16KBootReceiver.class);
        dismissIntent.setAction(INTENT_ACTION_DISMISSED);
        PendingIntent dismissPendingIntent =
                PendingIntent.getBroadcast(
                        this.getApplicationContext(),
                PendingIntent.getBroadcastAsUser(
                        this,
                        0,
                        dismissIntent,
                        PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
                        PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE,
                        UserHandle.CURRENT);

        Notification.Action action =
                new Notification.Action.Builder(