Search in sources :

Example 1 with InputMethodManagerCompatWrapper

use of com.android.inputmethod.compat.InputMethodManagerCompatWrapper in project android_packages_inputmethods_LatinIME by CyanogenMod.

the class RichInputMethodManager method initInternal.

private void initInternal(final Context context) {
    if (isInitialized()) {
        return;
    }
    mImmWrapper = new InputMethodManagerCompatWrapper(context);
    mContext = context;
    mInputMethodInfoCache = new InputMethodInfoCache(mImmWrapper.mImm, context.getPackageName());
    // Initialize additional subtypes.
    SubtypeLocaleUtils.init(context);
    final InputMethodSubtype[] additionalSubtypes = getAdditionalSubtypes();
    mImmWrapper.mImm.setAdditionalInputMethodSubtypes(getInputMethodIdOfThisIme(), additionalSubtypes);
    // Initialize the current input method subtype and the shortcut IME.
    refreshSubtypeCaches();
}
Also used : InputMethodSubtype(android.view.inputmethod.InputMethodSubtype) InputMethodManagerCompatWrapper(com.android.inputmethod.compat.InputMethodManagerCompatWrapper)

Aggregations

InputMethodSubtype (android.view.inputmethod.InputMethodSubtype)1 InputMethodManagerCompatWrapper (com.android.inputmethod.compat.InputMethodManagerCompatWrapper)1