diff options
author | 2012-07-06 12:30:09 +0900 | |
---|---|---|
committer | 2012-07-09 15:06:16 +0900 | |
commit | 7a422a0142a025a66078fb9971bf15f8b9c89f38 (patch) | |
tree | 7827e703b40e669079bdce39efb8ba35920274bd /java/src | |
parent | 37eaa24b5a48f5c80bb9ee0fdea477559a2bed1b (diff) | |
download | latinime-7a422a0142a025a66078fb9971bf15f8b9c89f38.tar.gz latinime-7a422a0142a025a66078fb9971bf15f8b9c89f38.tar.xz latinime-7a422a0142a025a66078fb9971bf15f8b9c89f38.zip |
Cleanup again (A72)
Change-Id: Id3765bf9826cc2c7ca70158cda53c75dc58f51c6
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 08edbe015..f2dc976bf 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -1663,7 +1663,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen public void updateSuggestionsOrPredictions() { mHandler.cancelUpdateSuggestionStrip(); - final boolean isPredictions = !mWordComposer.isComposingWord(); // Check if we have a suggestion engine attached. if (mSuggest == null || !mCurrentSettings.isSuggestionsRequested(mDisplayOrientation)) { @@ -1677,14 +1676,13 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen final CharSequence typedWord; final SuggestedWords suggestions; - // TODO: cleanup the following, those two mean the same thing - if (isPredictions || !mWordComposer.isComposingWord()) { + if (!mWordComposer.isComposingWord()) { if (!mCurrentSettings.mBigramPredictionEnabled) { setPunctuationSuggestions(); return; } typedWord = ""; - suggestions = updateBigramPredictions(typedWord); + suggestions = updateBigramPredictions(); } else { typedWord = mWordComposer.getTypedWord(); suggestions = updateSuggestions(typedWord); @@ -1892,7 +1890,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen separatorCode, prevWord); } - private SuggestedWords updateBigramPredictions(final CharSequence typedWord) { + private SuggestedWords updateBigramPredictions() { final CharSequence prevWord = mConnection.getThisWord(mCurrentSettings.mWordSeparators); return mSuggest.getSuggestedWords(mWordComposer, prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(), |