diff options
author | 2011-06-18 07:49:44 -0700 | |
---|---|---|
committer | 2011-06-18 07:49:44 -0700 | |
commit | 76427c8e565327561e656c5c07660a870ae259e7 (patch) | |
tree | 22c8356470891cfb512038c97432b1dcfbbc9369 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | ada37cb4d365e7a2ecb6e48325e27cf861dc463f (diff) | |
parent | 5e4e05afd2825bf7acb594fef5e7bd21c751dd63 (diff) | |
download | latinime-76427c8e565327561e656c5c07660a870ae259e7.tar.gz latinime-76427c8e565327561e656c5c07660a870ae259e7.tar.xz latinime-76427c8e565327561e656c5c07660a870ae259e7.zip |
Merge "Fix NPE"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index fc01d3976..7446aff9e 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1459,16 +1459,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } public void setSuggestions(SuggestedWords words) { -// if (mVoiceProxy.getAndResetIsShowingHint()) { -// setCandidatesView(mCandidateViewContainer); -// } - if (mCandidateView != null) { mCandidateView.setSuggestions(words); - if (mKeyboardSwitcher.getLatinKeyboard().needsAutoCorrectionSpacebarLed()) { - mKeyboardSwitcher.onAutoCorrectionStateChanged( - words.hasWordAboveAutoCorrectionScoreThreshold()); - } + mKeyboardSwitcher.onAutoCorrectionStateChanged( + words.hasWordAboveAutoCorrectionScoreThreshold()); } } |