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

Commit b1dc8ad5 authored by Jean Chalard's avatar Jean Chalard
Browse files

Simplification (A60)

Change-Id: I99e912d3edfc7dd3f17ee835331d5fcba976750c
parent 663dbfd1
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.