Loading services/core/java/com/android/server/inputmethod/InputMethodManagerInternal.java +4 −2 Original line number Diff line number Diff line Loading @@ -167,8 +167,10 @@ public abstract class InputMethodManagerInternal { /** * Indicates that the IME window has re-parented to the new target when the IME control changed. * * @param displayId the display hosting the IME window */ public abstract void onImeParentChanged(); public abstract void onImeParentChanged(int displayId); /** * Destroys the IME surface for the given display. Loading Loading @@ -300,7 +302,7 @@ public abstract class InputMethodManagerInternal { } @Override public void onImeParentChanged() { public void onImeParentChanged(int displayId) { } @Override Loading services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -5671,7 +5671,7 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub } @Override public void onImeParentChanged() { public void onImeParentChanged(int displayId) { synchronized (ImfLock.class) { // 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 Loading services/core/java/com/android/server/wm/DisplayContent.java +2 −1 Original line number Diff line number Diff line Loading @@ -4794,7 +4794,8 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp assignRelativeLayerForIme(getSyncTransaction(), true /* forceUpdate */); scheduleAnimation(); mWmService.mH.post(() -> InputMethodManagerInternal.get().onImeParentChanged()); mWmService.mH.post( () -> InputMethodManagerInternal.get().onImeParentChanged(getDisplayId())); } else if (mImeControlTarget != null && mImeControlTarget == mImeLayeringTarget) { // Even if the IME surface parent is not changed, the layer target belonging to the // parent may have changes. Then attempt to reassign if the IME control target is Loading Loading
services/core/java/com/android/server/inputmethod/InputMethodManagerInternal.java +4 −2 Original line number Diff line number Diff line Loading @@ -167,8 +167,10 @@ public abstract class InputMethodManagerInternal { /** * Indicates that the IME window has re-parented to the new target when the IME control changed. * * @param displayId the display hosting the IME window */ public abstract void onImeParentChanged(); public abstract void onImeParentChanged(int displayId); /** * Destroys the IME surface for the given display. Loading Loading @@ -300,7 +302,7 @@ public abstract class InputMethodManagerInternal { } @Override public void onImeParentChanged() { public void onImeParentChanged(int displayId) { } @Override Loading
services/core/java/com/android/server/inputmethod/InputMethodManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -5671,7 +5671,7 @@ public final class InputMethodManagerService extends IInputMethodManager.Stub } @Override public void onImeParentChanged() { public void onImeParentChanged(int displayId) { synchronized (ImfLock.class) { // 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 Loading
services/core/java/com/android/server/wm/DisplayContent.java +2 −1 Original line number Diff line number Diff line Loading @@ -4794,7 +4794,8 @@ class DisplayContent extends RootDisplayArea implements WindowManagerPolicy.Disp assignRelativeLayerForIme(getSyncTransaction(), true /* forceUpdate */); scheduleAnimation(); mWmService.mH.post(() -> InputMethodManagerInternal.get().onImeParentChanged()); mWmService.mH.post( () -> InputMethodManagerInternal.get().onImeParentChanged(getDisplayId())); } else if (mImeControlTarget != null && mImeControlTarget == mImeLayeringTarget) { // Even if the IME surface parent is not changed, the layer target belonging to the // parent may have changes. Then attempt to reassign if the IME control target is Loading