diff options
author | Jason Monk <jmonk@google.com> | 2015-07-21 09:30:18 -0400 |
---|---|---|
committer | Jason Monk <jmonk@google.com> | 2015-07-21 09:30:18 -0400 |
commit | 94f9c824c42f209f363c3ae8d637c909790e36b5 (patch) | |
tree | 4c6e092974f353d538c0e1f797f977df33649c16 /src | |
parent | d85fafce30f6fb71ea9de9de3c6d8aafc99dba33 (diff) | |
download | packages_apps_Settings-94f9c824c42f209f363c3ae8d637c909790e36b5.zip packages_apps_Settings-94f9c824c42f209f363c3ae8d637c909790e36b5.tar.gz packages_apps_Settings-94f9c824c42f209f363c3ae8d637c909790e36b5.tar.bz2 |
Don't show disabled apps in ignore optimizations
Bug: 22612760
Change-Id: Iddb3ad9cb9403d9e51bfcda82db3d10ee34ca47d
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/applications/ManageApplications.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java index 3820123..ce2dbe0 100644 --- a/src/com/android/settings/applications/ManageApplications.java +++ b/src/com/android/settings/applications/ManageApplications.java @@ -152,8 +152,10 @@ public class ManageApplications extends InstrumentedFragment // This is the actual mapping to filters from FILTER_ constants above, the order must // be kept in sync. public static final AppFilter[] FILTERS = new AppFilter[] { - AppStatePowerBridge.FILTER_POWER_WHITELISTED, // High power whitelist, on - ApplicationsState.FILTER_PERSONAL, // All apps label, but personal filter + new CompoundFilter(AppStatePowerBridge.FILTER_POWER_WHITELISTED, + ApplicationsState.FILTER_ALL_ENABLED), // High power whitelist, on + new CompoundFilter(ApplicationsState.FILTER_PERSONAL, + ApplicationsState.FILTER_ALL_ENABLED), // All apps label, but personal filter ApplicationsState.FILTER_EVERYTHING, // All apps ApplicationsState.FILTER_ALL_ENABLED, // Enabled ApplicationsState.FILTER_DISABLED, // Disabled @@ -617,6 +619,9 @@ public class ManageApplications extends InstrumentedFragment } public void setHasDisabled(boolean hasDisabledApps) { + if (mListType == LIST_TYPE_HIGH_POWER) { + return; + } mFilterAdapter.setFilterEnabled(FILTER_APPS_ENABLED, hasDisabledApps); mFilterAdapter.setFilterEnabled(FILTER_APPS_DISABLED, hasDisabledApps); } |