replace hidden Context APIs

Bug: 137202333
Test: Build & Unit test
Merged-In: I1c0e364949aa6b518c126224097774066e089a17
Change-Id: I1c0e364949aa6b518c126224097774066e089a17
This commit is contained in:
Chen Xu
2019-08-06 17:09:17 -07:00
committed by Brad Ebinger
parent 1cf90f78f1
commit b930b0617d

View File

@@ -195,7 +195,7 @@ public final class SmsApplication {
* @return
*/
private static int getIncomingUserId(Context context) {
int contextUserId = context.getUserId();
int contextUserId = UserHandle.myUserId();
final int callingUid = Binder.getCallingUid();
if (DEBUG_MULTIUSER) {
Log.i(LOG_TAG, "getIncomingUserHandle caller=" + callingUid + ", myuid="