From 356fce4606b76e46d3d4d1edf9ae215b5418add3 Mon Sep 17 00:00:00 2001 From: Zach Johnson Date: Fri, 24 Jul 2015 14:56:30 -0700 Subject: Hide apps in the battery menu that have COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED Once they are enabled for the first time, they'll show up indefinitely. b/22667081 Change-Id: Ia28de99d7d638d54c15fac2e08edeb70a9657e23 --- src/com/android/settings/applications/AppStatePowerBridge.java | 2 +- src/com/android/settings/applications/ManageApplications.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/com/android/settings') diff --git a/src/com/android/settings/applications/AppStatePowerBridge.java b/src/com/android/settings/applications/AppStatePowerBridge.java index 069c901..e25b9c9 100644 --- a/src/com/android/settings/applications/AppStatePowerBridge.java +++ b/src/com/android/settings/applications/AppStatePowerBridge.java @@ -56,7 +56,7 @@ public class AppStatePowerBridge extends AppStateBaseBridge { } public static final AppFilter FILTER_POWER_WHITELISTED = new CompoundFilter( - ApplicationsState.FILTER_PERSONAL, new AppFilter() { + ApplicationsState.FILTER_PERSONAL_WITHOUT_DISABLED_UNTIL_USED, new AppFilter() { @Override public void init() { } diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java index ce2dbe0..44ced66 100644 --- a/src/com/android/settings/applications/ManageApplications.java +++ b/src/com/android/settings/applications/ManageApplications.java @@ -154,7 +154,7 @@ public class ManageApplications extends InstrumentedFragment public static final AppFilter[] FILTERS = new AppFilter[] { new CompoundFilter(AppStatePowerBridge.FILTER_POWER_WHITELISTED, ApplicationsState.FILTER_ALL_ENABLED), // High power whitelist, on - new CompoundFilter(ApplicationsState.FILTER_PERSONAL, + new CompoundFilter(ApplicationsState.FILTER_PERSONAL_WITHOUT_DISABLED_UNTIL_USED, ApplicationsState.FILTER_ALL_ENABLED), // All apps label, but personal filter ApplicationsState.FILTER_EVERYTHING, // All apps ApplicationsState.FILTER_ALL_ENABLED, // Enabled -- cgit v1.1