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

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

Merge "Simplification (A60)"

parents 9d95a107 b1dc8ad5
Loading
Loading
Loading
Loading
+3 −9
Original line number Diff line number Diff line
@@ -1862,19 +1862,13 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen

        Utils.Stats.onSeparator((char)Keyboard.CODE_SPACE, WordComposer.NOT_A_COORDINATE,
                WordComposer.NOT_A_COORDINATE);
        if (!showingAddToDictionaryHint) {
            // If we're not showing the "Touch again to save", then show predictions.
            mHandler.postUpdateBigramPredictions();
        } else {
            if (mIsUserDictionaryAvailable) {
                mSuggestionsView.showAddToDictionaryHint(
                        suggestion, mCurrentSettings.mHintToSaveText);
        if (showingAddToDictionaryHint && mIsUserDictionaryAvailable) {
            mSuggestionsView.showAddToDictionaryHint(suggestion, mCurrentSettings.mHintToSaveText);
        } else {
                // Here we just manually picked a suggestion. We should be showing the predictions!
            // If we're not showing the "Touch again to save", then show predictions.
            mHandler.postUpdateBigramPredictions();
        }
    }
    }

    /**
     * Commits the chosen word to the text field and saves it for later retrieval.