Merge "Remove a redundant test (A53)"
This commit is contained in:
commit
792e7ddc24
1 changed files with 4 additions and 11 deletions
|
@ -1930,17 +1930,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
|
|
||||||
private SuggestedWords updateBigramPredictions(final CharSequence typedWord) {
|
private SuggestedWords updateBigramPredictions(final CharSequence typedWord) {
|
||||||
if (mCurrentSettings.mCorrectionEnabled) {
|
final CharSequence prevWord = mConnection.getThisWord(mCurrentSettings.mWordSeparators);
|
||||||
final CharSequence prevWord = mConnection.getThisWord(mCurrentSettings.mWordSeparators);
|
return mSuggest.getSuggestedWords(mWordComposer,
|
||||||
if (!TextUtils.isEmpty(prevWord)) {
|
prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
|
||||||
// If we call getSuggestedWord with mCorrectionEnabled == false or with
|
mCurrentSettings.mCorrectionEnabled, true);
|
||||||
// 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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setPunctuationSuggestions() {
|
public void setPunctuationSuggestions() {
|
||||||
|
|
Loading…
Reference in a new issue