diff options
author | Matt Garnes <matt@cyngn.com> | 2015-02-09 13:14:09 -0800 |
---|---|---|
committer | Matt Garnes <matt@cyngn.com> | 2015-02-09 13:19:27 -0800 |
commit | 1fcd6e3a5e32db272381c57153773b0b7f47494a (patch) | |
tree | 26198e12077de4898677487e6fac3d715fc3389b | |
parent | 426998ba0f4e0d0e07a8a8def5ec86a30066fcc4 (diff) | |
download | packages_apps_Trebuchet-1fcd6e3a5e32db272381c57153773b0b7f47494a.tar.gz packages_apps_Trebuchet-1fcd6e3a5e32db272381c57153773b0b7f47494a.tar.bz2 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.java | 7 |
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(); } } |