diff options
author | 2012-01-19 18:03:45 +0900 | |
---|---|---|
committer | 2012-01-19 18:03:45 +0900 | |
commit | 95a6e58ebcd8f44b970a8238cf30e48b10fc4b61 (patch) | |
tree | 75646e760ebe9d26947e6139277319ba3d327396 /java/src | |
parent | 7dde805745dd3a23c2b7b75707b651a4014a3476 (diff) | |
download | latinime-95a6e58ebcd8f44b970a8238cf30e48b10fc4b61.tar.gz latinime-95a6e58ebcd8f44b970a8238cf30e48b10fc4b61.tar.xz latinime-95a6e58ebcd8f44b970a8238cf30e48b10fc4b61.zip |
Small code simplification.
I'm pretty sure the test here was useless.
Change-Id: Iaece641fbd5455406533b19555f2b639759a525f
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index d11aaeb96..5b4b31b10 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1924,8 +1924,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar // Updating the predictions right away may be slow and feel unresponsive on slower // terminals. On the other hand if we just postUpdateBigramPredictions() it will // take a noticeable delay to update them which may feel uneasy. - } - if (showingAddToDictionaryHint) { + } else { if (mIsUserDictionaryAvailable) { mSuggestionsView.showAddToDictionaryHint( 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. */ private void commitChosenWord(final CharSequence bestWord, final int commitType) { - final KeyboardSwitcher switcher = mKeyboardSwitcher; - if (!switcher.isKeyboardAvailable()) - return; final InputConnection ic = getCurrentInputConnection(); if (ic != null) { mVoiceProxy.rememberReplacedWord(bestWord, mSettingsValues.mWordSeparators); |