diff options
| -rw-r--r-- | services/core/java/com/android/server/inputmethod/InputMethodManagerService.java | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index ab05e034562b..542f381c937c 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -6406,9 +6406,9 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub       * @return {@code true} if userId has debugging privileges.       * i.e. {@link UserManager#DISALLOW_DEBUGGING_FEATURES} is {@code false}.       */ -    private boolean userHasDebugPriv(int userId, final ShellCommand shellCommand) { -        if (mUserManager.hasUserRestriction( -                UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.of(userId))) { +    private boolean userHasDebugPriv(@UserIdInt int userId, ShellCommand shellCommand) { +        if (mUserManagerInternal.hasUserRestriction( +                UserManager.DISALLOW_DEBUGGING_FEATURES, userId)) {              shellCommand.getErrPrintWriter().println("User #" + userId                      + " is restricted with DISALLOW_DEBUGGING_FEATURES.");              return false;  |