Remove a redundant test (A53)
Change-Id: If711074fdcb586e35d02e421c845f2c9024ca718
This commit is contained in:
parent
4cba560dbb
commit
0783366036
1 changed files with 4 additions and 11 deletions
|
@ -1934,18 +1934,11 @@ 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);
|
||||||
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,
|
return mSuggest.getSuggestedWords(mWordComposer,
|
||||||
prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
|
prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
|
||||||
mCurrentSettings.mCorrectionEnabled, true);
|
mCurrentSettings.mCorrectionEnabled, true);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setPunctuationSuggestions() {
|
public void setPunctuationSuggestions() {
|
||||||
if (mCurrentSettings.mBigramPredictionEnabled) {
|
if (mCurrentSettings.mBigramPredictionEnabled) {
|
||||||
|
|
Loading…
Reference in a new issue