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

Commit 81b7b108 authored by Nicolas Prevot's avatar Nicolas Prevot
Browse files

In NfcActivityManager, don't use UserHandle.CURRENT.

In the work profile, UserHandle.CURRENT refers to the primary user.
We want to refer to the work profile itself.
So, using new UserHandle(UserHandle.myUserId()) instead.

BUG:21960385
Change-Id: I4d880ccf6926e437d674874295029b29278f3e12
parent e40d7a63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -406,7 +406,7 @@ public final class NfcActivityManager extends IAppCallback.Stub
                        Intent.FLAG_GRANT_READ_URI_PERMISSION);
            }
        }
        return new BeamShareData(message, uris, UserHandle.CURRENT, flags);
        return new BeamShareData(message, uris, new UserHandle(UserHandle.myUserId()), flags);
    }

    /** Callback from NFC service, usually on binder thread */