Merge "Only clear mInputMethodInputTarget if it is moved to the new display" into rvc-dev

This commit is contained in:
Tiger Huang
2020-04-16 16:00:39 +00:00
committed by Android (Google) Code Review

View File

@@ -1457,7 +1457,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
@Override
void onDisplayChanged(DisplayContent dc) {
if (dc != null && mDisplayContent != null
if (dc != null && mDisplayContent != null && dc != mDisplayContent
&& mDisplayContent.mInputMethodInputTarget == this) {
dc.setInputMethodInputTarget(mDisplayContent.mInputMethodInputTarget);
mDisplayContent.mInputMethodInputTarget = null;