aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-05 11:17:17 +0900
committerJean Chalard <jchalard@google.com>2012-07-05 17:22:04 +0900
commit078336603617f6c9cc4f917eb81c299a8cf8ab11 (patch)
treedf4553a2536349d0e79e117f4799fbce359dadf6 /java/src
parent4cba560dbbd8696673642d1a10d2d433418e54e2 (diff)
downloadlatinime-078336603617f6c9cc4f917eb81c299a8cf8ab11.tar.gz
latinime-078336603617f6c9cc4f917eb81c299a8cf8ab11.tar.xz
latinime-078336603617f6c9cc4f917eb81c299a8cf8ab11.zip
Remove a redundant test (A53)
Change-Id: If711074fdcb586e35d02e421c845f2c9024ca718
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java15
1 files changed, 4 insertions, 11 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 930c9cfd1..dce1075e7 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1934,17 +1934,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
private SuggestedWords updateBigramPredictions(final CharSequence typedWord) {
- if (mCurrentSettings.mCorrectionEnabled) {
- final CharSequence prevWord = mConnection.getThisWord(mCurrentSettings.mWordSeparators);
- if (!TextUtils.isEmpty(prevWord)) {
- // If we call getSuggestedWord with mCorrectionEnabled == false or with
- // an empty prevWord, we'll get a 0-sized list of suggestions.
- return mSuggest.getSuggestedWords(mWordComposer,
- prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
- mCurrentSettings.mCorrectionEnabled, true);
- }
- }
- return null;
+ final CharSequence prevWord = mConnection.getThisWord(mCurrentSettings.mWordSeparators);
+ return mSuggest.getSuggestedWords(mWordComposer,
+ prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
+ mCurrentSettings.mCorrectionEnabled, true);
}
public void setPunctuationSuggestions() {