diff options
author | 2012-03-12 01:12:40 -0700 | |
---|---|---|
committer | 2012-03-12 01:12:40 -0700 | |
commit | a3f2ce1f3150a01471f2996ae07fb21a2f857b58 (patch) | |
tree | 5ef0f5c9e860011279850c6ca31d8623c4013fc4 /java/src | |
parent | b6895aec05dc7ae4326fc874d9e79f06f25d8d94 (diff) | |
parent | c0c20b386fb06b688f56dd7f807e2bcbb70b3a59 (diff) | |
download | latinime-a3f2ce1f3150a01471f2996ae07fb21a2f857b58.tar.gz latinime-a3f2ce1f3150a01471f2996ae07fb21a2f857b58.tar.xz latinime-a3f2ce1f3150a01471f2996ae07fb21a2f857b58.zip |
Merge "Fix an OOB"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java b/java/src/com/android/inputmethod/latin/suggestions/SuggestionsView.java index 462733f96..812376de0 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 @@ 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 |