summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Lee <llee@cyngn.com>2015-04-01 15:07:31 -0700
committerRoman Birg <roman@cyngn.com>2015-04-24 15:54:00 +0000
commitf7eb72cdc69c114af15d68e0428f822d6953338a (patch)
tree80e0061cd03172c345c237d6f0e2ce71bf6ccb9c
parentd9630aa57e6878d146c772453197e837895e0e35 (diff)
downloadandroid_packages_apps_Trebuchet-f7eb72cdc69c114af15d68e0428f822d6953338a.tar.gz
android_packages_apps_Trebuchet-f7eb72cdc69c114af15d68e0428f822d6953338a.tar.bz2
android_packages_apps_Trebuchet-f7eb72cdc69c114af15d68e0428f822d6953338a.zip
Trebuchet: Skip sorting again when sorted by Title when launching app view
Change-Id: Ie5b5398d17e6742f28084ce7cd6d31c4ba872b24 (cherry picked from commit b53f60bced4657d35880952732b2bcb811e1b7a6)
-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 7e280f266..74551e662 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