summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaj Yengisetty <rajesh@cyngn.com>2014-08-16 00:44:35 (GMT)
committerRajesh Yengisetty <rajesh@cyngn.com>2014-08-16 00:50:10 (GMT)
commit64d9506ec221db6def2d9f67dfbd9b0e068f3f8c (patch)
treedf1ccc90cb563af40ec98c59eea529076af954ca
parent84b237f491dadaa155376a57d4100ff27a59397f (diff)
downloadandroid_packages_apps_Trebuchet-64d9506ec221db6def2d9f67dfbd9b0e068f3f8c.zip
android_packages_apps_Trebuchet-64d9506ec221db6def2d9f67dfbd9b0e068f3f8c.tar.gz
android_packages_apps_Trebuchet-64d9506ec221db6def2d9f67dfbd9b0e068f3f8c.tar.bz2
Fix: Sort apps before opening AppDrawer to reflect the
most recent counts. Repro: Clear Trebuchet data Drawer Sorting mode of Launch Count Launch App1 twice Launch App2 once Open drawer, note App1 ordered before App2 Launcher App2 two more times Open drawer, note position hasn't updated Change-Id: I9d85627f5dc86bc753a1e6f22911ee39a8d78b5e
-rw-r--r--src/com/android/launcher3/AppsCustomizePagedView.java4
-rw-r--r--src/com/android/launcher3/Launcher.java1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/AppsCustomizePagedView.java b/src/com/android/launcher3/AppsCustomizePagedView.java
index f2c08a3..4dcf22f 100644
--- a/src/com/android/launcher3/AppsCustomizePagedView.java
+++ b/src/com/android/launcher3/AppsCustomizePagedView.java
@@ -1937,6 +1937,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
mSortMode = sortMode;
+ sortApps();
+ }
+
+ public void sortApps() {
Collections.sort(mFilteredApps, getComparatorForSortMode());
if (mContentType == ContentType.Applications) {
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index fdbe841..90cf241 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3769,6 +3769,7 @@ public class Launcher extends Activity
if (resetPageToZero) {
mAppsCustomizeLayout.reset();
}
+ mAppsCustomizeContent.sortApps();
showAppsCustomizeHelper(animated, false, contentType);
mAppsCustomizeLayout.requestFocus();