Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfdfcf4f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use IO thread to handle IMMS user switching" into main

parents 0881028e fca524fb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1093,7 +1093,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
                mUserSwitchHandlerTask.mClientToBeReset = clientToBeReset;
                return;
            }
            mHandler.removeCallbacks(mUserSwitchHandlerTask);
            mIoHandler.removeCallbacks(mUserSwitchHandlerTask);
        }
        // Hide soft input before user switch task since switch task may block main handler a while
        // and delayed the hideCurrentInputLocked().
@@ -1103,7 +1103,7 @@ public final class InputMethodManagerService implements IInputMethodManagerImpl.
        final UserSwitchHandlerTask task = new UserSwitchHandlerTask(this, userId,
                clientToBeReset);
        mUserSwitchHandlerTask = task;
        mHandler.post(task);
        mIoHandler.post(task);
    }

    @VisibleForTesting