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

Commit 442ac5d0 authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Don't ask for surrounding characters for each keypress" into jb-dev

parents 34b2b5e6 736b109e
Loading
Loading
Loading
Loading
+12 −14
Original line number Diff line number Diff line
@@ -1480,8 +1480,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen

        if ((isAlphabet(primaryCode)
                || mSettingsValues.isSymbolExcludedFromWordSeparators(primaryCode))
                && isSuggestionsRequested() && !isCursorTouchingWord()) {
            if (!isComposingWord) {
                && isSuggestionsRequested() && !isComposingWord && !isCursorTouchingWord()) {
            // Reset entirely the composing state anyway, then start composing a new word unless
            // the character is a single quote. The idea here is, single quote is not a
            // separator and it should be treated as a normal character, except in the first
@@ -1494,7 +1493,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            resetComposingState(false /* alsoResetLastComposedWord */);
            clearSuggestions();
        }
        }
        if (isComposingWord) {
            mWordComposer.add(
                    primaryCode, x, y, mKeyboardSwitcher.getKeyboardView().getKeyDetector());