Search in sources :

Example 6 with NetworkResetPreferenceController

use of com.android.settings.network.NetworkResetPreferenceController in project android_packages_apps_Settings by DirtyUnicorns.

the class ResetDashboardFragment method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new NetworkResetPreferenceController(context));
    controllers.add(new FactoryResetPreferenceController(context));
    controllers.add(new ResetAppPrefPreferenceController(context, lifecycle));
    return controllers;
}
Also used : NetworkResetPreferenceController(com.android.settings.network.NetworkResetPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) ResetAppPrefPreferenceController(com.android.settings.applications.ResetAppPrefPreferenceController)

Example 7 with NetworkResetPreferenceController

use of com.android.settings.network.NetworkResetPreferenceController in project Resurrection_packages_apps_Settings by ResurrectionRemix.

the class ResetDashboardFragment method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new NetworkResetPreferenceController(context));
    controllers.add(new FactoryResetPreferenceController(context));
    controllers.add(new ResetAppPrefPreferenceController(context, lifecycle));
    return controllers;
}
Also used : NetworkResetPreferenceController(com.android.settings.network.NetworkResetPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) ResetAppPrefPreferenceController(com.android.settings.applications.manageapplications.ResetAppPrefPreferenceController)

Aggregations

NetworkResetPreferenceController (com.android.settings.network.NetworkResetPreferenceController)7 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)7 ArrayList (java.util.ArrayList)7 ResetAppPrefPreferenceController (com.android.settings.applications.ResetAppPrefPreferenceController)5 ResetAppPrefPreferenceController (com.android.settings.applications.manageapplications.ResetAppPrefPreferenceController)2