Merge "replace hidden Context APIs"

This commit is contained in:
Brad Ebinger
2019-11-22 22:42:11 +00:00
committed by Gerrit Code Review

View File

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