Merge "Fix IME picker dialog being dismissed by the app overlay" into tm-qpr-dev am: 3fc61e0aaf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19034072 Change-Id: I5f0de0c5aa79dbd0aed5527e9eaad42a0f7caad9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -5754,10 +5754,12 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub
|
||||
@Override
|
||||
public void onImeParentChanged() {
|
||||
synchronized (ImfLock.class) {
|
||||
// Hide the IME method menu when the IME surface parent will change in
|
||||
// case seeing the dialog dismiss flickering during the next focused window
|
||||
// starting the input connection.
|
||||
mMenuController.hideInputMethodMenu();
|
||||
// Hide the IME method menu only when the IME surface parent is changed by the
|
||||
// input target changed, in case seeing the dialog dismiss flickering during
|
||||
// the next focused window starting the input connection.
|
||||
if (mLastImeTargetWindow != mCurFocusedWindow) {
|
||||
mMenuController.hideInputMethodMenu();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user