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

Commit a5e9ffa3 authored by Ken Wakasa's avatar Ken Wakasa
Browse files

Fix a bug in canAddToLastInputMethod()

bug: 3456057
Change-Id: I977e984aafb36fdb83ac05d19fe0c7324a36d0c5
parent 32c3b81b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1949,7 +1949,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub

    private boolean canAddToLastInputMethod(InputMethodSubtype subtype) {
        if (subtype == null) return true;
        return subtype.containsExtraValueKey(SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME);
        return !subtype.containsExtraValueKey(SUBTYPE_EXTRAVALUE_EXCLUDE_FROM_LAST_IME);
    }

    private void saveCurrentInputMethodAndSubtypeToHistory() {