Rename method clearing sessions appropriately

Bug: 205676419
Test: make
Change-Id: I92c43548a275f358e382a260314bb6fa4546ab42
This commit is contained in:
Nikolas Havrikov
2021-11-18 17:36:58 +01:00
parent 8b08a9f777
commit 0dc20ab2a0
2 changed files with 3 additions and 3 deletions

View File

@@ -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")

View File

@@ -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) {