Loading services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +8 −2 Original line number Diff line number Diff line Loading @@ -1209,8 +1209,14 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. // Hide soft input before user switch task since switch task may block main handler a while // and delayed the hideCurrentInputLocked(). final var userData = getUserData(userId); if (Flags.refactorInsetsController()) { final var statsToken = createStatsTokenForFocusedClient(false /* show */, SoftInputShowHideReason.HIDE_SWITCH_USER, userId); setImeVisibilityOnFocusedWindowClient(false, userData, statsToken); } else { hideCurrentInputLocked(userData.mImeBindingState.mFocusedWindow, 0 /* flags */, SoftInputShowHideReason.HIDE_SWITCH_USER, userId); } final UserSwitchHandlerTask task = new UserSwitchHandlerTask(this, userId, clientToBeReset); mUserSwitchHandlerTask = task; Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +8 −2 Original line number Diff line number Diff line Loading @@ -1209,8 +1209,14 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl. // Hide soft input before user switch task since switch task may block main handler a while // and delayed the hideCurrentInputLocked(). final var userData = getUserData(userId); if (Flags.refactorInsetsController()) { final var statsToken = createStatsTokenForFocusedClient(false /* show */, SoftInputShowHideReason.HIDE_SWITCH_USER, userId); setImeVisibilityOnFocusedWindowClient(false, userData, statsToken); } else { hideCurrentInputLocked(userData.mImeBindingState.mFocusedWindow, 0 /* flags */, SoftInputShowHideReason.HIDE_SWITCH_USER, userId); } final UserSwitchHandlerTask task = new UserSwitchHandlerTask(this, userId, clientToBeReset); mUserSwitchHandlerTask = task; Loading