Simplification (A60)

Change-Id: I99e912d3edfc7dd3f17ee835331d5fcba976750c
This commit is contained in:
Jean Chalard 2012-07-05 12:45:42 +09:00
parent 663dbfd1cc
commit b1dc8ad5f2

View file

@ -1862,17 +1862,11 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
Utils.Stats.onSeparator((char)Keyboard.CODE_SPACE, WordComposer.NOT_A_COORDINATE, Utils.Stats.onSeparator((char)Keyboard.CODE_SPACE, WordComposer.NOT_A_COORDINATE,
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. // If we're not showing the "Touch again to save", then show predictions.
mHandler.postUpdateBigramPredictions(); 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();
}
} }
} }