Fix 2304151 - crash while installing apps

It was happening if you had previously uninstalled an app.
This commit is contained in:
Joe Onorato
2009-12-08 13:29:38 -08:00
parent 7e4ed99eb0
commit bf173f11d2

View File

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