Fix a StringIndexOutOfBounds. Bug: 2524050
parent
1ab409272b
commit
6780b898ec
|
@ -1468,7 +1468,7 @@ public class LatinIME extends InputMethodService
|
||||||
mHandler.removeMessages(MSG_UPDATE_SUGGESTIONS);
|
mHandler.removeMessages(MSG_UPDATE_SUGGESTIONS);
|
||||||
updateSuggestions();
|
updateSuggestions();
|
||||||
}
|
}
|
||||||
if (mBestWord != null) {
|
if (mBestWord != null && mBestWord.length() > 0) {
|
||||||
TextEntryState.acceptedDefault(mWord.getTypedWord(), mBestWord);
|
TextEntryState.acceptedDefault(mWord.getTypedWord(), mBestWord);
|
||||||
mJustAccepted = true;
|
mJustAccepted = true;
|
||||||
pickSuggestion(mBestWord);
|
pickSuggestion(mBestWord);
|
||||||
|
|
Loading…
Reference in New Issue