Search in sources :

Example 6 with SpellCheckerPreferenceController

use of com.android.settings.inputmethod.SpellCheckerPreferenceController in project android_packages_apps_Settings by SudaMod.

the class LanguageAndInputSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(@NonNull Context context, @Nullable Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    // Language
    controllers.add(new PhoneLanguagePreferenceController(context));
    controllers.add(new SpellCheckerPreferenceController(context));
    controllers.add(new UserDictionaryPreferenceController(context));
    controllers.add(new TtsPreferenceController(context, new TtsEngines(context)));
    // Input
    controllers.add(new VirtualKeyboardPreferenceController(context));
    controllers.add(new PhysicalKeyboardPreferenceController(context, lifecycle));
    final GameControllerPreferenceController gameControllerPreferenceController = new GameControllerPreferenceController(context);
    if (lifecycle != null) {
        lifecycle.addObserver(gameControllerPreferenceController);
    }
    controllers.add(gameControllerPreferenceController);
    controllers.add(new DefaultAutofillPreferenceController(context));
    return controllers;
}
Also used : VirtualKeyboardPreferenceController(com.android.settings.inputmethod.VirtualKeyboardPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) SpellCheckerPreferenceController(com.android.settings.inputmethod.SpellCheckerPreferenceController) ArrayList(java.util.ArrayList) PhysicalKeyboardPreferenceController(com.android.settings.inputmethod.PhysicalKeyboardPreferenceController) TtsEngines(android.speech.tts.TtsEngines) DefaultAutofillPreferenceController(com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController) GameControllerPreferenceController(com.android.settings.inputmethod.GameControllerPreferenceController)

Example 7 with SpellCheckerPreferenceController

use of com.android.settings.inputmethod.SpellCheckerPreferenceController in project platform_packages_apps_Settings by BlissRoms.

the class LanguageAndInputSettings method buildPreferenceControllers.

private static List<AbstractPreferenceController> buildPreferenceControllers(@NonNull Context context, @Nullable Lifecycle lifecycle) {
    final List<AbstractPreferenceController> controllers = new ArrayList<>();
    // Language
    controllers.add(new PhoneLanguagePreferenceController(context));
    controllers.add(new SpellCheckerPreferenceController(context));
    controllers.add(new UserDictionaryPreferenceController(context));
    controllers.add(new TtsPreferenceController(context, new TtsEngines(context)));
    // Input
    controllers.add(new VirtualKeyboardPreferenceController(context));
    controllers.add(new PhysicalKeyboardPreferenceController(context, lifecycle));
    final GameControllerPreferenceController gameControllerPreferenceController = new GameControllerPreferenceController(context);
    if (lifecycle != null) {
        lifecycle.addObserver(gameControllerPreferenceController);
    }
    controllers.add(gameControllerPreferenceController);
    controllers.add(new DefaultAutofillPreferenceController(context));
    return controllers;
}
Also used : VirtualKeyboardPreferenceController(com.android.settings.inputmethod.VirtualKeyboardPreferenceController) AbstractPreferenceController(com.android.settingslib.core.AbstractPreferenceController) SpellCheckerPreferenceController(com.android.settings.inputmethod.SpellCheckerPreferenceController) ArrayList(java.util.ArrayList) PhysicalKeyboardPreferenceController(com.android.settings.inputmethod.PhysicalKeyboardPreferenceController) TtsEngines(android.speech.tts.TtsEngines) DefaultAutofillPreferenceController(com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController) GameControllerPreferenceController(com.android.settings.inputmethod.GameControllerPreferenceController)

Aggregations

PhysicalKeyboardPreferenceController (com.android.settings.inputmethod.PhysicalKeyboardPreferenceController)7 SpellCheckerPreferenceController (com.android.settings.inputmethod.SpellCheckerPreferenceController)7 VirtualKeyboardPreferenceController (com.android.settings.inputmethod.VirtualKeyboardPreferenceController)7 AbstractPreferenceController (com.android.settingslib.core.AbstractPreferenceController)7 ArrayList (java.util.ArrayList)7 TtsEngines (android.speech.tts.TtsEngines)5 DefaultAutofillPreferenceController (com.android.settings.applications.defaultapps.DefaultAutofillPreferenceController)5 GameControllerPreferenceController (com.android.settings.inputmethod.GameControllerPreferenceController)5 PreferenceCategoryController (com.android.settings.widget.PreferenceCategoryController)2