Search in sources :

Example 6 with InputMethodAndSubtypeEnablerManager

use of com.android.settingslib.inputmethod.InputMethodAndSubtypeEnablerManager in project android_packages_apps_Settings by LineageOS.

the class InputMethodAndSubtypeEnabler method onCreate.

@Override
public void onCreate(final Bundle icicle) {
    super.onCreate(icicle);
    // Input method id should be available from an Intent when this preference is launched as a
    // single Activity (see InputMethodAndSubtypeEnablerActivity). It should be available
    // from a preference argument when the preference is launched as a part of the other
    // Activity (like a right pane of 2-pane Settings app)
    final String targetImi = getStringExtraFromIntentOrArguments(android.provider.Settings.EXTRA_INPUT_METHOD_ID);
    final PreferenceScreen root = getPreferenceManager().createPreferenceScreen(getPrefContext());
    mManager = new InputMethodAndSubtypeEnablerManager(this);
    mManager.init(this, targetImi, root);
    setPreferenceScreen(root);
}
Also used : PreferenceScreen(android.support.v7.preference.PreferenceScreen) InputMethodAndSubtypeEnablerManager(com.android.settingslib.inputmethod.InputMethodAndSubtypeEnablerManager)

Aggregations

PreferenceScreen (android.support.v7.preference.PreferenceScreen)6 InputMethodAndSubtypeEnablerManager (com.android.settingslib.inputmethod.InputMethodAndSubtypeEnablerManager)6