diff options
| author | 2022-01-21 17:34:38 +0000 | |
|---|---|---|
| committer | 2022-01-21 17:34:38 +0000 | |
| commit | 0925cfe589a7827a3bf2bc1efb8a27ab792389bf (patch) | |
| tree | 2064431fc8043bd231a2b0f599ec053ec2727f01 | |
| parent | 8aac302dc0e64f19f00f8b6e920886562503cde0 (diff) | |
| parent | b93d234952704ac8acfe785364acc6bdafa2273a (diff) | |
Merge "Remove IMMS#MSG_BIND_INPUT"
| -rw-r--r-- | services/core/java/com/android/server/inputmethod/InputMethodManagerService.java | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index 662521bcdd30..a897208f11b0 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -221,7 +221,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub private static final int MSG_SHOW_IM_SUBTYPE_PICKER = 1; private static final int MSG_SHOW_IM_CONFIG = 3; - private static final int MSG_BIND_INPUT = 1010; private static final int MSG_SHOW_SOFT_INPUT = 1020; private static final int MSG_HIDE_SOFT_INPUT = 1030; private static final int MSG_HIDE_CURRENT_INPUT_METHOD = 1035; @@ -2304,8 +2303,10 @@ public class InputMethodManagerService extends IInputMethodManager.Stub InputBindResult attachNewInputLocked(@StartInputReason int startInputReason, boolean initial) { if (!mBoundToMethod) { IInputMethod curMethod = getCurMethodLocked(); - executeOrSendMessage(curMethod, mCaller.obtainMessageOO( - MSG_BIND_INPUT, curMethod, mCurClient.binding)); + try { + curMethod.bindInput(mCurClient.binding); + } catch (RemoteException e) { + } mBoundToMethod = true; } @@ -4227,14 +4228,6 @@ public class InputMethodManagerService extends IInputMethodManager.Stub // --------------------------------------------------------- - case MSG_BIND_INPUT: - args = (SomeArgs)msg.obj; - try { - ((IInputMethod)args.arg1).bindInput((InputBinding)args.arg2); - } catch (RemoteException e) { - } - args.recycle(); - return true; case MSG_SHOW_SOFT_INPUT: args = (SomeArgs) msg.obj; try { |