diff options
author | Daniel Sandler <dsandler@android.com> | 2010-04-15 13:37:33 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-04-15 13:37:33 -0700 |
commit | 7645c94dedb7f6007cfd4697ce03c6b815432a4d (patch) | |
tree | 2ec7244e0f380f32cde5c25314336c1bb1f84047 /src/com | |
parent | effc4a8aef606503287dc42d1f7c0feb16e12035 (diff) | |
parent | 054019dbeafd33de4e39601e0f305926c15bad15 (diff) | |
download | android_packages_apps_Trebuchet-7645c94dedb7f6007cfd4697ce03c6b815432a4d.tar.gz android_packages_apps_Trebuchet-7645c94dedb7f6007cfd4697ce03c6b815432a4d.tar.bz2 android_packages_apps_Trebuchet-7645c94dedb7f6007cfd4697ce03c6b815432a4d.zip |
Merge "Launcher2 performance: Don't sort apps in LauncherModel." into froyo
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/android/launcher2/AllAppsList.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/com/android/launcher2/AllAppsList.java b/src/com/android/launcher2/AllAppsList.java index 96d936948..ee89e5aca 100644 --- a/src/com/android/launcher2/AllAppsList.java +++ b/src/com/android/launcher2/AllAppsList.java @@ -57,17 +57,10 @@ class AllAppsList { /** * Add the supplied ApplicationInfo objects to the list, and enqueue it into the * list to broadcast when notify() is called. - * - * Postcondition: data and added are sorted in order of LauncherModel.APP_NAME_COMPARATOR. */ public void add(ApplicationInfo info) { - int pos = Collections.binarySearch(data, info, LauncherModel.APP_NAME_COMPARATOR); - if (pos < 0) pos = -1 - pos; - data.add(pos, info); - - pos = Collections.binarySearch(added, info, LauncherModel.APP_NAME_COMPARATOR); - if (pos < 0) pos = -1 - pos; - added.add(pos, info); + data.add(info); + added.add(info); } public void clear() { |