summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/com/android/launcher3/Launcher.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 7e280f2..74551e6 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -4333,7 +4333,11 @@ public class Launcher extends Activity
if (resetPageToZero) {
mAppsCustomizeTabHost.reset();
}
- mAppsCustomizeContent.sortApps();
+ if (mAppsCustomizeContent.getSortMode() != AppsCustomizePagedView.SortMode.Title) {
+ // optimize Title sort by not reinflating views every time we open the app drawer
+ // since we already sort based on new app installs and change of sort mode
+ mAppsCustomizeContent.sortApps();
+ }
showAppsCustomizeHelper(animated, false, contentType);
mAppsCustomizeTabHost.post(new Runnable() {
@Override