Remove parameter from current input binding

Bug: 205676419
Test: make
Change-Id: I331567a5072916d477af6a9ccad99a3a9d7d6cc1
This commit is contained in:
Nikolas Havrikov
2021-11-11 18:09:40 +01:00
parent ba37769c2d
commit 285c6dea7b

View File

@@ -1985,8 +1985,8 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
}
@GuardedBy("mMethodMap")
private boolean bindCurrentInputMethodServiceLocked(
Intent service, ServiceConnection conn, int flags) {
private boolean bindCurrentInputMethodServiceLocked(ServiceConnection conn, int flags) {
Intent service = getCurIntent();
if (service == null || conn == null) {
Slog.e(TAG, "--- bind failed: service = " + service + ", conn = " + conn);
return false;
@@ -3211,8 +3211,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
showInputToken));
mInputShown = true;
if (hasConnection() && !isVisibleBound()) {
bindCurrentInputMethodServiceLocked(
getCurIntent(), getVisibleConnection(), IME_VISIBLE_BIND_FLAGS);
bindCurrentInputMethodServiceLocked(getVisibleConnection(), IME_VISIBLE_BIND_FLAGS);
setVisibleBound(true);
}
res = true;
@@ -3228,7 +3227,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub
Slog.w(TAG, "Force disconnect/connect to the IME in showCurrentInputLocked()");
ServiceConnection connection = getMainConnection();
mContext.unbindService(connection);
bindCurrentInputMethodServiceLocked(getCurIntent(), connection,
bindCurrentInputMethodServiceLocked(connection,
mImeConnectionBindFlags);
} else {
if (DEBUG) {