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

Commit a3f2ce1f authored by Jean Chalard's avatar Jean Chalard Committed by Android (Google) Code Review
Browse files

Merge "Fix an OOB"

parents b6895aec c0c20b38
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -329,7 +329,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
            } else {
                color = mColorTypedWord;
            }
            if (LatinImeLogger.sDBG) {
            if (LatinImeLogger.sDBG && suggestedWords.size() > 1) {
                // If we auto-correct, then the autocorrection is in slot 0 and the typed word
                // is in slot 1.
                if (index == mCenterSuggestionIndex && suggestedWords.mHasAutoCorrectionCandidate