summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Lee <llee@cyngn.com>2015-04-01 15:07:31 -0700
committerMatt Garnes <matt@cyngn.com>2015-05-13 00:49:36 +0000
commitf934dab8bd78af57e2bea1b338f63ea63e909013 (patch)
treed2c4b21499b94d91744f97aff7208cf1a4d7693e
parent29bd9c7b16888480cc2d4a3aad9833cdba205154 (diff)
downloadandroid_packages_apps_Trebuchet-f934dab8bd78af57e2bea1b338f63ea63e909013.tar.gz
android_packages_apps_Trebuchet-f934dab8bd78af57e2bea1b338f63ea63e909013.tar.bz2
android_packages_apps_Trebuchet-f934dab8bd78af57e2bea1b338f63ea63e909013.zip
Trebuchet: Skip sorting again when sorted by Title when launching app view
Change-Id: Ie5b5398d17e6742f28084ce7cd6d31c4ba872b24 (cherry picked from commit b53f60bced4657d35880952732b2bcb811e1b7a6) (cherry picked from commit f7eb72cdc69c114af15d68e0428f822d6953338a)
-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 cfa910049..b7aec454d 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -4312,7 +4312,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