diff --git a/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java b/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java index 755c093498c0f..efc18f8659587 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodBindingController.java @@ -342,7 +342,7 @@ final class InputMethodBindingController { // We consider this to be a new bind attempt, since the system // should now try to restart the service for us. mLastBindTime = SystemClock.uptimeMillis(); - mService.clearCurMethodLocked(); + mService.clearClientSessionsLocked(); mService.clearInputShowRequestLocked(); mService.unbindCurrentClientLocked(UnbindReason.DISCONNECT_IME); } @@ -366,7 +366,7 @@ final class InputMethodBindingController { } mCurId = null; - mService.clearCurMethodLocked(); + mService.clearClientSessionsLocked(); } @GuardedBy("mMethodMap") diff --git a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java index 74871dcf26914..457dc561ed85a 100644 --- a/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +++ b/services/core/java/com/android/server/inputmethod/InputMethodManagerService.java @@ -2589,7 +2589,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub } @GuardedBy("mMethodMap") - void clearCurMethodLocked() { + void clearClientSessionsLocked() { if (getCurMethod() != null) { final int numClients = mClients.size(); for (int i = 0; i < numClients; ++i) {