mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-01 00:06:47 +00:00
Don't call data on zero size allocations.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user