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

Commit 6623d54a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Simplify IMMS#getEnabledInputMethodSubtypeList() a bit"

parents 317feffa 9e134c89
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -2208,15 +2208,10 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
            boolean allowsImplicitlySelectedSubtypes) {
        final int callingUserId = UserHandle.getCallingUserId();
        synchronized (ImfLock.class) {
            final int[] resolvedUserIds = InputMethodUtils.resolveUserId(callingUserId,
                    mSettings.getCurrentUserId(), null);
            if (resolvedUserIds.length != 1) {
                return Collections.emptyList();
            }
            final long ident = Binder.clearCallingIdentity();
            try {
                return getEnabledInputMethodSubtypeListLocked(imiId,
                        allowsImplicitlySelectedSubtypes, resolvedUserIds[0]);
                        allowsImplicitlySelectedSubtypes, callingUserId);
            } finally {
                Binder.restoreCallingIdentity(ident);
            }