Merge "Fix an OOB"
commit
a3f2ce1f31
|
@ -329,7 +329,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
|
||||||
} else {
|
} else {
|
||||||
color = mColorTypedWord;
|
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
|
// If we auto-correct, then the autocorrection is in slot 0 and the typed word
|
||||||
// is in slot 1.
|
// is in slot 1.
|
||||||
if (index == mCenterSuggestionIndex && suggestedWords.mHasAutoCorrectionCandidate
|
if (index == mCenterSuggestionIndex && suggestedWords.mHasAutoCorrectionCandidate
|
||||||
|
|
Loading…
Reference in New Issue