Fix IOOB Exception
Bug: 5021745 Change-Id: I58815ca3f3c8b1bead895e8a94e2f89dbcc67436main
parent
18fa487202
commit
5cbdb23621
|
@ -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 New Issue