Simplification (A60)
Change-Id: I99e912d3edfc7dd3f17ee835331d5fcba976750c
This commit is contained in:
parent
663dbfd1cc
commit
b1dc8ad5f2
1 changed files with 3 additions and 9 deletions
|
@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue