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
This commit is contained in:
Nicolas Prevot
2015-07-01 12:25:43 +01:00
parent e40d7a6326
commit 81b7b10864

View File

@@ -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 */