Search in sources :

Example 6 with AssistGestureSettingsPreferenceController

use of com.android.settings.gestures.AssistGestureSettingsPreferenceController in project platform_packages_apps_Settings by BlissRoms.

the class ManageAssist method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(Context context, Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    controllers.add(new DefaultAssistPreferenceController(context, "default_assist", true));
    controllers.add(new AssistGestureSettingsPreferenceController(context, lifecycle, KEY_ASSIST, true));
    controllers.add(new AssistContextPreferenceController(context, lifecycle));
    controllers.add(new AssistScreenshotPreferenceController(context, lifecycle));
    controllers.add(new AssistFlashScreenPreferenceController(context, lifecycle));
    controllers.add(new DefaultVoiceInputPreferenceController(context, lifecycle));
    return controllers;
}
Also used : AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) ArrayList(java.util.ArrayList) AssistGestureSettingsPreferenceController(com.android.settings.gestures.AssistGestureSettingsPreferenceController)

Aggregations

AssistGestureSettingsPreferenceController (com.android.settings.gestures.AssistGestureSettingsPreferenceController)6 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)6 ArrayList (java.util.ArrayList)6