Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 01d17b02 authored by Manish Singh's avatar Manish Singh Committed by Android (Google) Code Review
Browse files

Merge "Use the filter to filter out the private apps" into main

parents 707fc841 3c5938bf
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
        }