Search in sources :

Example 1 with ResetAppPrefPreferenceController

use of com.android.settings.applications.manageapplications.ResetAppPrefPreferenceController in project android_packages_apps_Settings by omnirom.

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)

Example 2 with ResetAppPrefPreferenceController

use of com.android.settings.applications.manageapplications.ResetAppPrefPreferenceController 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

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