diff options
author | Joe Onorato <joeo@android.com> | 2009-12-08 13:29:38 -0800 |
---|---|---|
committer | Joe Onorato <joeo@android.com> | 2009-12-08 13:29:38 -0800 |
commit | bf173f11d27719af7a3c480ce84bb5b63e191fba (patch) | |
tree | 266ce0a57ebfafcbcb72ea6da02f1937dd9c3658 /src | |
parent | 7e4ed99eb075ebe3a7a10b852ae791bee5000e6e (diff) | |
download | android_packages_apps_Trebuchet-bf173f11d27719af7a3c480ce84bb5b63e191fba.tar.gz android_packages_apps_Trebuchet-bf173f11d27719af7a3c480ce84bb5b63e191fba.tar.bz2 android_packages_apps_Trebuchet-bf173f11d27719af7a3c480ce84bb5b63e191fba.zip |
Fix 2304151 - crash while installing apps
It was happening if you had previously uninstalled an app.
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher2/AllAppsView.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |