Merge "Fix the logics in ImeFocusController#onPostWindowFocus" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-16 14:46:04 +00:00
committed by Android (Google) Code Review

View File

@@ -123,7 +123,7 @@ public final class ImeFocusController {
}
// Update mNextServedView when focusedView changed.
final View viewForWindowFocus = focusedView != null ? focusedView : mViewRootImpl.mView;
onViewFocusChanged(viewForWindowFocus, true);
onViewFocusChanged(viewForWindowFocus, viewForWindowFocus.hasFocus());
immDelegate.startInputAsyncOnWindowFocusGain(viewForWindowFocus,
windowAttribute.softInputMode, windowAttribute.flags, forceFocus);