aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-05 01:57:04 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-05 01:57:04 -0700
commit792e7ddc2493f700852f8a37dd81cdb0157c136b (patch)
treef36f92fda3476fafe44a8d2a17e33badd9908cfd /java/src
parent9636735c0a082d4b23a9ffbd39bd86ed1f6f023c (diff)
parent078336603617f6c9cc4f917eb81c299a8cf8ab11 (diff)
downloadlatinime-792e7ddc2493f700852f8a37dd81cdb0157c136b.tar.gz
latinime-792e7ddc2493f700852f8a37dd81cdb0157c136b.tar.xz
latinime-792e7ddc2493f700852f8a37dd81cdb0157c136b.zip
Merge "Remove a redundant test (A53)"
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 b33948ef2..594529500 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1930,17 +1930,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() {