Search in sources :

Example 6 with BridgeIInputMethodManager

use of com.android.layoutlib.bridge.android.BridgeIInputMethodManager in project android_frameworks_base by ResurrectionRemix.

the class InputMethodManager_Delegate method getInstance.

// ---- Overridden methods ----
@LayoutlibDelegate
static /*package*/
InputMethodManager getInstance() {
    synchronized (InputMethodManager.class) {
        InputMethodManager imm = InputMethodManager.peekInstance();
        if (imm == null) {
            imm = new InputMethodManager(new BridgeIInputMethodManager(), Looper.getMainLooper());
            InputMethodManager.sInstance = imm;
        }
        return imm;
    }
}
Also used : BridgeIInputMethodManager(com.android.layoutlib.bridge.android.BridgeIInputMethodManager) BridgeIInputMethodManager(com.android.layoutlib.bridge.android.BridgeIInputMethodManager) LayoutlibDelegate(com.android.tools.layoutlib.annotations.LayoutlibDelegate)

Aggregations

BridgeIInputMethodManager (com.android.layoutlib.bridge.android.BridgeIInputMethodManager)6 LayoutlibDelegate (com.android.tools.layoutlib.annotations.LayoutlibDelegate)6