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

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

Merge "Fix a bug where words disappear on inserting separators"

parents ff020671 edc6395d
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -1414,10 +1414,12 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
                if (mDeleteCount > DELETE_ACCELERATE_AT) {
                    ic.deleteSurroundingText(1, 0);
                }
                if (isSuggestionsRequested()) {
                    restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(ic);
                }
            }
        }
    }

    private void handleTab() {
        final int imeOptions = getCurrentInputEditorInfo().imeOptions;
@@ -1706,6 +1708,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
        // Check if we have a suggestion engine attached.
        if ((mSuggest == null || !isSuggestionsRequested())
                && !mVoiceProxy.isVoiceInputHighlighted()) {
            if (mWordComposer.isComposingWord()) {
                Log.w(TAG, "Called updateSuggestions but suggestions were not requested!");
                mWordComposer.setAutoCorrection(mWordComposer.getTypedWord());
            }
            return;
        }