Merge "Fix IOOB Exception"

main
Tadashi G. Takaoka 2011-07-13 16:06:10 -07:00 committed by Android (Google) Code Review
commit 6a6aad0758
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ public class CandidateView extends LinearLayout implements OnClickListener, OnLo
public void layoutStrip(SuggestedWords suggestions, int maxWidth, int maxCount) {
final int size = suggestions.size();
if (size == 0) return;
setupTexts(suggestions, size, mAutoCorrectHighlight);
mCountInStrip = Math.min(maxCount, size);
mScaleX = 1.0f;