Don't call data on zero size allocations.

This commit is contained in:
Jason Sams
2009-09-21 19:34:13 -07:00
parent 9244230763
commit bea627791d

View File

@@ -628,13 +628,13 @@ public class AllAppsView extends RSSurfaceView
mLabelIds[i] = mLabels[i].getID();
}
mAllocIconID.data(mIconIds);
mAllocLabelID.data(mLabelIds);
if(count > 0) {
mAllocIconID.data(mIconIds);
mAllocLabelID.data(mLabelIds);
}
mState.iconCount = count;
Log.d("AllAppsView", "mScript=" + mScript + " mAllocIconID=" + mAllocIconID);
if (mScript != null) { // wtf
mScript.bindAllocation(mAllocIconID, Defines.ALLOC_ICON_IDS);
mScript.bindAllocation(mAllocLabelID, Defines.ALLOC_LABEL_IDS);