From 452821f54ddcb88fbe917c75dd060733968249d7 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 14 Jan 2011 16:39:47 -0800 Subject: [PATCH] Fixing issue where icons sometimes do not show in AllApps. Change-Id: I7f999ae96f73ba2300dbebef74a04ecdbb60ff43 --- src/com/android/launcher2/AllAppsPagedView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/launcher2/AllAppsPagedView.java b/src/com/android/launcher2/AllAppsPagedView.java index 456856237a..c9c069f125 100644 --- a/src/com/android/launcher2/AllAppsPagedView.java +++ b/src/com/android/launcher2/AllAppsPagedView.java @@ -332,6 +332,8 @@ public class AllAppsPagedView extends PagedViewWithDraggableItems implements All final int index = Collections.binarySearch(mApps, info, LauncherModel.APP_NAME_COMPARATOR); if (index < 0) { mApps.add(-(index + 1), info); + } else { + mApps.add(index, info); } } mFilteredApps = rebuildFilteredApps(mApps);