Merge "Revert "Keeps the served view of the window when focus to the ne..."" into rvc-dev am: e974c347fd am: b2988f3e4f

Change-Id: I706b407462dda80ef939cc3dd962a580cc50d35e
This commit is contained in:
Taran Singh
2020-05-06 21:35:23 +00:00
committed by Automerger Merge Worker

View File

@@ -645,6 +645,11 @@ public final class InputMethodManager {
@Override
public void setCurrentRootView(ViewRootImpl rootView) {
synchronized (mH) {
if (mCurRootView != null) {
// Reset the last served view and restart window focus state of the root view.
mCurRootView.getImeFocusController().setServedView(null);
mRestartOnNextWindowFocus = true;
}
mCurRootView = rootView;
}
}