diff --git a/src/com/android/launcher2/AllAppsView.java b/src/com/android/launcher2/AllAppsView.java index a1ce8f6073..aea8c80dfd 100644 --- a/src/com/android/launcher2/AllAppsView.java +++ b/src/com/android/launcher2/AllAppsView.java @@ -39,6 +39,7 @@ import android.renderscript.ProgramStore; import android.renderscript.Sampler; import android.renderscript.SimpleMesh; +import android.content.ComponentName; import android.content.Context; import android.content.res.Resources; import android.database.DataSetObserver; @@ -547,7 +548,7 @@ public class AllAppsView extends RSSurfaceView final int N = list.size(); for (int i=0; i= 0) { mAllAppsList.remove(index); if (mRollo != null) { @@ -581,11 +582,17 @@ public class AllAppsView extends RSSurfaceView } }; - private Comparator mAppIntentComp = new Comparator() { - public int compare(ApplicationInfo a, ApplicationInfo b) { - return a.intent.getComponent().compareTo(b.intent.getComponent()); + private static int findAppByComponent(ArrayList list, ApplicationInfo item) { + ComponentName component = item.intent.getComponent(); + final int N = list.size(); + for (int i=0; i