Use the filter to filter out the private apps
in the private profile when the private profile is in quiet mode.
Bug: 323327330
Test: manual
Change-Id: I30b14a843f388a9c83d0439b004f761328b74d64
diff --git a/src/com/android/settings/datausage/UnrestrictedDataAccess.java b/src/com/android/settings/datausage/UnrestrictedDataAccess.java
index 05c1132..00eaf89 100644
--- a/src/com/android/settings/datausage/UnrestrictedDataAccess.java
+++ b/src/com/android/settings/datausage/UnrestrictedDataAccess.java
@@ -44,8 +44,8 @@
super.onCreate(icicle);
mShowSystem = icicle != null && icicle.getBoolean(EXTRA_SHOW_SYSTEM);
use(UnrestrictedDataAccessPreferenceController.class).setFilter(
- mShowSystem ? ApplicationsState.FILTER_ALL_ENABLED
- : ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER);
+ mShowSystem ? ApplicationsState.FILTER_ENABLED_NOT_QUIET
+ : ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER_NOT_QUIET);
use(UnrestrictedDataAccessPreferenceController.class).setSession(getSettingsLifecycle());
}
@@ -62,8 +62,8 @@
mShowSystem = !mShowSystem;
item.setTitle(mShowSystem ? R.string.menu_hide_system : R.string.menu_show_system);
use(UnrestrictedDataAccessPreferenceController.class).setFilter(
- mShowSystem ? ApplicationsState.FILTER_ALL_ENABLED
- : ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER);
+ mShowSystem ? ApplicationsState.FILTER_ENABLED_NOT_QUIET
+ : ApplicationsState.FILTER_DOWNLOADED_AND_LAUNCHER_NOT_QUIET);
use(UnrestrictedDataAccessPreferenceController.class).rebuild();
return true;
}