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);