Hide the IME when starting quickstep.

Bug: 73285089
Change-Id: Ifad6ffe64467754ade966165ee3c274ac9445c1f
This commit is contained in:
Winson Chung
2018-04-20 16:45:16 -07:00
parent 5715d9e69b
commit e6e77ca44d
3 changed files with 12 additions and 0 deletions

Binary file not shown.

View File

@@ -115,4 +115,15 @@ public class RecentsAnimationWrapper {
}
});
}
public void hideCurrentInputMethod() {
BackgroundExecutor.get().submit(() -> {
synchronized (this) {
TraceHelper.partitionSection("RecentsController", "Hiding currentinput method");
if (controller != null) {
controller.hideCurrentInputMethod();
}
}
});
}
}

View File

@@ -521,6 +521,7 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity> {
notifyGestureStartedAsync();
setStateOnUiThread(STATE_GESTURE_STARTED);
mGestureStarted = true;
mRecentsAnimationWrapper.hideCurrentInputMethod();
mRecentsAnimationWrapper.enableInputConsumer();
ActivityManagerWrapper.getInstance().closeSystemWindows(
CLOSE_SYSTEM_WINDOWS_REASON_RECENTS);