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

Commit 347a80f7 authored by Jean Chalard's avatar Jean Chalard
Browse files

Tiny refactoring (A73)

If !mWordComposer.isComposingWord(), then mWordComposer.getTypedWord()
will always return an empty string.

Change-Id: Ife66d0abc44c743cbc30d31724e833cda168fd5c
parent 7a422a01
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1674,17 +1674,15 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
            return;
        }

        final CharSequence typedWord;
        final String typedWord = mWordComposer.getTypedWord();
        final SuggestedWords suggestions;
        if (!mWordComposer.isComposingWord()) {
            if (!mCurrentSettings.mBigramPredictionEnabled) {
                setPunctuationSuggestions();
                return;
            }
            typedWord = "";
            suggestions = updateBigramPredictions();
        } else {
            typedWord = mWordComposer.getTypedWord();
            suggestions = updateSuggestions(typedWord);
        }