summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings
diff options
context:
space:
mode:
authorZach Johnson <zachoverflow@google.com>2015-07-24 14:56:30 -0700
committerZach Johnson <zachoverflow@google.com>2015-07-24 16:46:31 -0700
commit356fce4606b76e46d3d4d1edf9ae215b5418add3 (patch)
tree4fdd3a939c00f191bb3299bf68f31a1b1426c492 /src/com/android/settings
parent38c9b9eb5ee2734c4f6f78854951e79bd9e9d3cf (diff)
downloadpackages_apps_Settings-356fce4606b76e46d3d4d1edf9ae215b5418add3.zip
packages_apps_Settings-356fce4606b76e46d3d4d1edf9ae215b5418add3.tar.gz
packages_apps_Settings-356fce4606b76e46d3d4d1edf9ae215b5418add3.tar.bz2
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
Diffstat (limited to 'src/com/android/settings')
-rw-r--r--src/com/android/settings/applications/AppStatePowerBridge.java2
-rw-r--r--src/com/android/settings/applications/ManageApplications.java2
2 files changed, 2 insertions, 2 deletions
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