From b1dc8ad5f244337f91fcdac2a17078f5b9239cb7 Mon Sep 17 00:00:00 2001 From: Jean Chalard Date: Thu, 5 Jul 2012 12:45:42 +0900 Subject: [PATCH] Simplification (A60) Change-Id: I99e912d3edfc7dd3f17ee835331d5fcba976750c --- java/src/com/android/inputmethod/latin/LatinIME.java | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index bbd38dd70..357a2a0bd 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1862,17 +1862,11 @@ 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 (showingAddToDictionaryHint && mIsUserDictionaryAvailable) { + mSuggestionsView.showAddToDictionaryHint(suggestion, mCurrentSettings.mHintToSaveText); + } else { // If we're not showing the "Touch again to save", then show predictions. mHandler.postUpdateBigramPredictions(); - } else { - if (mIsUserDictionaryAvailable) { - mSuggestionsView.showAddToDictionaryHint( - suggestion, mCurrentSettings.mHintToSaveText); - } else { - // Here we just manually picked a suggestion. We should be showing the predictions! - mHandler.postUpdateBigramPredictions(); - } } }