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