Fix IOOB Exception
Bug: 5021745 Change-Id: I58815ca3f3c8b1bead895e8a94e2f89dbcc67436
This commit is contained in:
parent
18fa487202
commit
5cbdb23621
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue