diff options
author | Michael Jurka <mikejurka@google.com> | 2011-07-11 19:59:46 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-07-11 19:59:46 -0700 |
commit | 5b1808da75ed3e3528cb31dee56a4e363812cc21 (patch) | |
tree | 3b7c24905aafc5ab47b136501848540be0a6429e /src/com/android/launcher2/LauncherModel.java | |
parent | 53b7a64e71b75faf37589cd772dd7ba772925724 (diff) | |
download | android_packages_apps_Trebuchet-5b1808da75ed3e3528cb31dee56a4e363812cc21.tar.gz android_packages_apps_Trebuchet-5b1808da75ed3e3528cb31dee56a4e363812cc21.tar.bz2 android_packages_apps_Trebuchet-5b1808da75ed3e3528cb31dee56a4e363812cc21.zip |
Fix bug where All Apps wasn't always getting updated
Bug # 4731290
Diffstat (limited to 'src/com/android/launcher2/LauncherModel.java')
-rw-r--r-- | src/com/android/launcher2/LauncherModel.java | 6 |
1 files changed, 5 insertions, 1 deletions
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<ApplicationInfo> APP_NAME_COMPARATOR = new Comparator<ApplicationInfo>() { 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<ApplicationInfo> APP_INSTALL_TIME_COMPARATOR |