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

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

Merge "Allow multi users for building permission transfer intent"

parents e4df5f53 8f4991fd
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -150,8 +150,9 @@ public class SystemDataTransferProcessor {
        // Create a PendingIntent
        final long token = Binder.clearCallingIdentity();
        try {
            return PendingIntent.getActivity(mContext, /*requestCode */ associationId, intent,
                    FLAG_ONE_SHOT | FLAG_CANCEL_CURRENT | FLAG_IMMUTABLE);
            return PendingIntent.getActivityAsUser(mContext, /*requestCode */ associationId, intent,
                    FLAG_ONE_SHOT | FLAG_CANCEL_CURRENT | FLAG_IMMUTABLE, /* options= */ null,
                    UserHandle.CURRENT);
        } finally {
            Binder.restoreCallingIdentity(token);
        }