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
This commit is contained in:
Manish Singh
2024-04-02 16:10:01 +00:00
parent a9f137842a
commit 3c5938bf45

View File

@@ -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;
}