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:26 +0000
commit815f04e9b12e7acd3f5e278e03e5d685a90d12c3 (patch)
treead8e9a6b606817398a20fb34744836c539028298
parent6404ffc5f9d3f0daae3356142440a509db91a1f5 (diff)
downloadandroid_packages_apps_Trebuchet-815f04e9b12e7acd3f5e278e03e5d685a90d12c3.tar.gz
android_packages_apps_Trebuchet-815f04e9b12e7acd3f5e278e03e5d685a90d12c3.tar.bz2
android_packages_apps_Trebuchet-815f04e9b12e7acd3f5e278e03e5d685a90d12c3.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 05753e29f..167251af8 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -4167,7 +4167,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