Search in sources :

Example 6 with EmergencyBroadcastPreferenceController

use of com.android.settings.notification.EmergencyBroadcastPreferenceController in project android_packages_apps_Settings by DirtyUnicorns.

the class AppAndNotificationDashboardFragment method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Application app, Fragment host) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new EmergencyBroadcastPreferenceController(context, "app_and_notif_cell_broadcast_settings"));
    controllers.add(new SpecialAppAccessPreferenceController(context));
    controllers.add(new AppPermissionsPreferenceController(context));
    controllers.add(new RecentAppsPreferenceController(context, app, host));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) EmergencyBroadcastPreferenceController(com.android.settings.notification.EmergencyBroadcastPreferenceController) ArrayList(java.util.ArrayList)

Example 7 with EmergencyBroadcastPreferenceController

use of com.android.settings.notification.EmergencyBroadcastPreferenceController in project android_packages_apps_Settings by crdroidandroid.

the class AppAndNotificationDashboardFragment method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Application app, Fragment host) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new EmergencyBroadcastPreferenceController(context, "app_and_notif_cell_broadcast_settings"));
    controllers.add(new SpecialAppAccessPreferenceController(context));
    controllers.add(new AppPermissionsPreferenceController(context));
    controllers.add(new RecentAppsPreferenceController(context, app, host));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) EmergencyBroadcastPreferenceController(com.android.settings.notification.EmergencyBroadcastPreferenceController) ArrayList(java.util.ArrayList)

Example 8 with EmergencyBroadcastPreferenceController

use of com.android.settings.notification.EmergencyBroadcastPreferenceController in project platform_packages_apps_Settings by BlissRoms.

the class AppAndNotificationDashboardFragment method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Application app, Fragment host) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new EmergencyBroadcastPreferenceController(context, "app_and_notif_cell_broadcast_settings"));
    controllers.add(new SpecialAppAccessPreferenceController(context));
    controllers.add(new AppPermissionsPreferenceController(context));
    controllers.add(new RecentAppsPreferenceController(context, app, host));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) EmergencyBroadcastPreferenceController(com.android.settings.notification.EmergencyBroadcastPreferenceController) ArrayList(java.util.ArrayList)

Aggregations

EmergencyBroadcastPreferenceController (com.android.settings.notification.EmergencyBroadcastPreferenceController)8 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)8 ArrayList (java.util.ArrayList)8