From bea627791d7b1f4ecfeedb38695a57d76fc7a2ac Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Mon, 21 Sep 2009 19:34:13 -0700 Subject: [PATCH] Don't call data on zero size allocations. --- src/com/android/launcher2/AllAppsView.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index 9f9018e78f..e8911c59fa 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -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);