From bf173f11d27719af7a3c480ce84bb5b63e191fba Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Tue, 8 Dec 2009 13:29:38 -0800 Subject: Fix 2304151 - crash while installing apps It was happening if you had previously uninstalled an app. --- src/com/android/launcher2/AllAppsView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/android/launcher2/AllAppsView.java') diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index fe8ded12b..6d3ae47b0 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -1149,7 +1149,7 @@ public class AllAppsView extends RSSurfaceView int[] labelIds = new int[count]; mAllocLabelIds = Allocation.createSized(mRS, Element.USER_I32(mRS), count); - final int oldCount = mIcons.length; + final int oldCount = mRollo.mState.iconCount; System.arraycopy(mIcons, 0, icons, 0, oldCount); System.arraycopy(mIconIds, 0, iconIds, 0, oldCount); -- cgit v1.2.3