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

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

Merge "Remove an unused field IMMS#mShortcutInputMethodsAndSubtypes"

parents bb91ca74 86e2377a
Loading
Loading
Loading
Loading
+7 −21
Original line number Diff line number Diff line
@@ -553,10 +553,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
     */
    private InputMethodSubtype mCurrentSubtype;

    // This list contains the pairs of InputMethodInfo and InputMethodSubtype.
    private final ArrayMap<InputMethodInfo, ArrayList<InputMethodSubtype>>
            mShortcutInputMethodsAndSubtypes = new ArrayMap<>();

    // Was the keyguard locked when this client became current?
    private boolean mCurClientInKeyguard;

@@ -2535,7 +2531,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
                Slog.w(TAG, "Unknown input method from prefs: " + id, e);
                resetCurrentMethodAndClient(UnbindReason.SWITCH_IME_FAILED);
            }
            mShortcutInputMethodsAndSubtypes.clear();
        } else {
            // There is no longer an input method set, so stop any current one.
            resetCurrentMethodAndClient(UnbindReason.NO_IME);
@@ -4228,7 +4223,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
    public List getShortcutInputMethodsAndSubtypes() {
        synchronized (mMethodMap) {
            ArrayList<Object> ret = new ArrayList<>();
            if (mShortcutInputMethodsAndSubtypes.size() == 0) {
            // If there are no selected shortcut subtypes, the framework will try to find
            // the most applicable subtype from all subtypes whose mode is
            // SUBTYPE_MODE_VOICE. This is an exceptional case, so we will hardcode the mode.
@@ -4241,14 +4235,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
            }
            return ret;
        }
            for (InputMethodInfo imi: mShortcutInputMethodsAndSubtypes.keySet()) {
                ret.add(imi);
                for (InputMethodSubtype subtype: mShortcutInputMethodsAndSubtypes.get(imi)) {
                    ret.add(subtype);
                }
            }
            return ret;
        }
    }

    @Override