commit | a3f2ce1f3150a01471f2996ae07fb21a2f857b58 | [log] [tgz] |
---|---|---|
author | Jean Chalard <jchalard@google.com> | Mon Mar 12 01:12:40 2012 -0700 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Mon Mar 12 01:12:40 2012 -0700 |
tree | 5ef0f5c9e860011279850c6ca31d8623c4013fc4 | |
parent | b6895aec05dc7ae4326fc874d9e79f06f25d8d94 [diff] | |
parent | c0c20b386fb06b688f56dd7f807e2bcbb70b3a59 [diff] |
Merge "Fix an OOB"
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java index 462733f..812376d 100644 --- a/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java +++ b/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java
@@ -329,7 +329,7 @@ } 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