aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-06-18 13:33:48 +0900
committerTadashi G. Takaoka <takaoka@google.com>2011-06-18 23:43:58 +0900
commit5e4e05afd2825bf7acb594fef5e7bd21c751dd63 (patch)
treebd5988fa0a3c43d8b0a52c99a023459746423e13 /java/src/com/android/inputmethod/latin/LatinIME.java
parentc029e0f4a721f0e9972a4669707ad70b079899e4 (diff)
downloadlatinime-5e4e05afd2825bf7acb594fef5e7bd21c751dd63.tar.gz
latinime-5e4e05afd2825bf7acb594fef5e7bd21c751dd63.tar.xz
latinime-5e4e05afd2825bf7acb594fef5e7bd21c751dd63.zip
Fix NPE
Bug: 4686479 Change-Id: I0b8a32d0f9bcebe55eebecd38dc5e69198e94378
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java10
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());
}
}