am 8ae770f3: Merge "Small code simplification."

* commit '8ae770f39bd445758333eec88f4d1d598c77555b':
  Small code simplification.
main
Jean Chalard 2012-01-19 01:35:04 -08:00 committed by Android Git Automerger
commit bd31f2d2ee
1 changed files with 1 additions and 5 deletions

View File

@ -1924,8 +1924,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
// Updating the predictions right away may be slow and feel unresponsive on slower // Updating the predictions right away may be slow and feel unresponsive on slower
// terminals. On the other hand if we just postUpdateBigramPredictions() it will // terminals. On the other hand if we just postUpdateBigramPredictions() it will
// take a noticeable delay to update them which may feel uneasy. // take a noticeable delay to update them which may feel uneasy.
} } else {
if (showingAddToDictionaryHint) {
if (mIsUserDictionaryAvailable) { if (mIsUserDictionaryAvailable) {
mSuggestionsView.showAddToDictionaryHint( mSuggestionsView.showAddToDictionaryHint(
suggestion, mSettingsValues.mHintToSaveText); suggestion, mSettingsValues.mHintToSaveText);
@ -1942,9 +1941,6 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
* Commits the chosen word to the text field and saves it for later retrieval. * Commits the chosen word to the text field and saves it for later retrieval.
*/ */
private void commitChosenWord(final CharSequence bestWord, final int commitType) { private void commitChosenWord(final CharSequence bestWord, final int commitType) {
final KeyboardSwitcher switcher = mKeyboardSwitcher;
if (!switcher.isKeyboardAvailable())
return;
final InputConnection ic = getCurrentInputConnection(); final InputConnection ic = getCurrentInputConnection();
if (ic != null) { if (ic != null) {
mVoiceProxy.rememberReplacedWord(bestWord, mSettingsValues.mWordSeparators); mVoiceProxy.rememberReplacedWord(bestWord, mSettingsValues.mWordSeparators);