summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Lee <llee@cyngn.com>2015-04-01 22:07:31 (GMT)
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-04-24 15:53:50 (GMT)
commitb53f60bced4657d35880952732b2bcb811e1b7a6 (patch)
tree18c40ba041218a1c6d8eed1ed2e9601100bd8183
parent50f78e36b079bbe14bcb50064d28940358d42544 (diff)
downloadandroid_packages_apps_Trebuchet-b53f60bced4657d35880952732b2bcb811e1b7a6.zip
android_packages_apps_Trebuchet-b53f60bced4657d35880952732b2bcb811e1b7a6.tar.gz
android_packages_apps_Trebuchet-b53f60bced4657d35880952732b2bcb811e1b7a6.tar.bz2
Trebuchet: Skip sorting again when sorted by Title when launching app view
Change-Id: Ie5b5398d17e6742f28084ce7cd6d31c4ba872b24
-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