Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6780b898 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Fix a StringIndexOutOfBounds. Bug: 2524050

parent 1ab40927
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);