From 3c5938bf45c0621286d0851a79fa2b8236f23d26 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Tue, 2 Apr 2024 16:10:01 +0000 Subject: [PATCH] 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 --- .../settings/datausage/UnrestrictedDataAccess.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/android/settings/datausage/UnrestrictedDataAccess.java b/src/com/android/settings/datausage/UnrestrictedDataAccess.java index 05c11327f73..00eaf899de8 100644 --- a/src/com/android/settings/datausage/UnrestrictedDataAccess.java +++ b/src/com/android/settings/datausage/UnrestrictedDataAccess.java @@ -44,8 +44,8 @@ public class UnrestrictedDataAccess extends DashboardFragment { 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 @@ public class UnrestrictedDataAccess extends DashboardFragment { 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; }