aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-01-19 01:35:04 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-19 01:35:04 -0800
commitbd31f2d2ee3bdf07373a1767f28278c51a21225e (patch)
treecf2267b4b08bef32bf43b203b036ff97cc51ac10
parent83b1df39c35dac203066419bacf1a4729c1d3974 (diff)
parent8ae770f39bd445758333eec88f4d1d598c77555b (diff)
downloadlatinime-bd31f2d2ee3bdf07373a1767f28278c51a21225e.tar.gz
latinime-bd31f2d2ee3bdf07373a1767f28278c51a21225e.tar.xz
latinime-bd31f2d2ee3bdf07373a1767f28278c51a21225e.zip
am 8ae770f3: Merge "Small code simplification."
* commit '8ae770f39bd445758333eec88f4d1d598c77555b': Small code simplification.
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java6
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);