From 5b1808da75ed3e3528cb31dee56a4e363812cc21 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Mon, 11 Jul 2011 19:59:46 -0700 Subject: Fix bug where All Apps wasn't always getting updated Bug # 4731290 --- src/com/android/launcher2/LauncherModel.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/com/android/launcher2/LauncherModel.java b/src/com/android/launcher2/LauncherModel.java index 64b38c0e3..a177b311c 100644 --- a/src/com/android/launcher2/LauncherModel.java +++ b/src/com/android/launcher2/LauncherModel.java @@ -1747,7 +1747,11 @@ public class LauncherModel extends BroadcastReceiver { public static final Comparator APP_NAME_COMPARATOR = new Comparator() { public final int compare(ApplicationInfo a, ApplicationInfo b) { - return sCollator.compare(a.title.toString(), b.title.toString()); + int result = sCollator.compare(a.title.toString(), b.title.toString()); + if (result == 0) { + result = a.componentName.compareTo(b.componentName); + } + return result; } }; public static final Comparator APP_INSTALL_TIME_COMPARATOR -- cgit v1.2.3