Merge "Simplification (A60)"

main
Jean Chalard 2012-07-06 00:11:48 -07:00 committed by Android (Google) Code Review
commit ea2ee86e56
1 changed files with 3 additions and 9 deletions

View File

@ -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();
}
}
}