summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Garnes <matt@cyngn.com>2015-02-09 13:14:09 -0800
committerMatt Garnes <matt@cyngn.com>2015-02-09 13:19:27 -0800
commit1fcd6e3a5e32db272381c57153773b0b7f47494a (patch)
tree26198e12077de4898677487e6fac3d715fc3389b
parent426998ba0f4e0d0e07a8a8def5ec86a30066fcc4 (diff)
downloadandroid_packages_apps_Trebuchet-1fcd6e3a5e32db272381c57153773b0b7f47494a.tar.gz
android_packages_apps_Trebuchet-1fcd6e3a5e32db272381c57153773b0b7f47494a.tar.bz2
android_packages_apps_Trebuchet-1fcd6e3a5e32db272381c57153773b0b7f47494a.zip
Filter apps for app drawer only after mApps is completely populated.
If mPreInstallConfig is set to true, apps will be added to mApps for display in the drawer after mFilteredApps is filtered from mApps. This results in applications being hidden from view that should not be. Filter mApps into mFilteredApps only after addPreInstallApps has been called. Change-Id: Ic426c5e530ffa61e0cbca211a6a32fcba38fc08b
-rw-r--r--src/com/android/launcher3/AppsCustomizePagedView.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/com/android/launcher3/AppsCustomizePagedView.java b/src/com/android/launcher3/AppsCustomizePagedView.java
index 8e25e025e..a28cca827 100644
--- a/src/com/android/launcher3/AppsCustomizePagedView.java
+++ b/src/com/android/launcher3/AppsCustomizePagedView.java
@@ -1686,12 +1686,11 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
removePreInstallApps();
}
- filterAppsWithoutInvalidate();
-
if (mPreInstallConfig) {
addPreInstallApps();
}
+ filterAppsWithoutInvalidate();
sortByCustomization();
updatePageCountsAndInvalidateData();
}
@@ -1754,12 +1753,12 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
}
addAppsWithoutInvalidate(list);
- filterAppsWithoutInvalidate();
if (mPreInstallConfig) {
addPreInstallApps();
}
+ filterAppsWithoutInvalidate();
updatePageCountsAndInvalidateData();
}
}
@@ -1820,10 +1819,10 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
}
addAppsWithoutInvalidate(list);
- filterAppsWithoutInvalidate();
if (mPreInstallConfig) {
addPreInstallApps();
}
+ filterAppsWithoutInvalidate();
updatePageCountsAndInvalidateData();
}
}