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

Commit d6f750f4 authored by Adam Bookatz's avatar Adam Bookatz
Browse files

UM.getUserHandle -> UM.getProcessUserId

UM is being made @UserHandleAware, so using an explicit method avoids ambiguity.

Bug: 201679968

Test: (No-op) compiles and treehugger
Change-Id: Ia85a61605bc26331c8abb587cdf9bbcf1f5a4056
parent 720cf21d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -65,7 +65,7 @@ public class UserCallActivity extends Activity implements TelecomSystem.Componen
            Intent intent = getIntent();
            verifyCallAction(intent);
            final UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE);
            final UserHandle userHandle = new UserHandle(userManager.getUserHandle());
            final UserHandle userHandle = new UserHandle(userManager.getProcessUserId());
            // Once control flow has passed to this activity, it is no longer guaranteed that we can
            // accurately determine whether the calling package has the CALL_PHONE runtime permission.
            // At this point in time we trust that the ActivityManager has already performed this