Merge "Fix an OOB"
This commit is contained in:
commit
a3f2ce1f31
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue