Merge "Enabling New Insets API with Multi-Session IME." into rvc-dev am: 09419a8129 am: 185a6d154e am: 24391b6b22

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11802630

Change-Id: I63ff64f52b1f798bde60ae96ad74653ae60e8486
This commit is contained in:
TreeHugger Robot
2020-06-13 03:00:58 +00:00
committed by Automerger Merge Worker

View File

@@ -1347,13 +1347,14 @@ public final class MultiClientInputMethodManagerService {
for (WindowInfo windowInfo : clientInfo.mWindowMap.values()) {
if (windowInfo.mWindowHandle == targetWindowHandle) {
final IBinder targetWindowToken = windowInfo.mWindowToken;
// TODO(yukawa): Report targetWindowToken and targetWindowToken to WMS.
if (DEBUG) {
Slog.v(TAG, "reportImeWindowTarget"
+ " clientId=" + clientId
+ " imeWindowToken=" + imeWindowToken
+ " targetWindowToken=" + targetWindowToken);
}
mIWindowManagerInternal.updateInputMethodTargetWindow(
imeWindowToken, targetWindowToken);
}
}
// not found.
@@ -1490,6 +1491,9 @@ public final class MultiClientInputMethodManagerService {
case InputMethodClientState.ALREADY_SENT_BIND_RESULT:
try {
clientInfo.mMSInputMethodSession.showSoftInput(flags, resultReceiver);
// Forcing WM to show IME on imeTargetWindow
mWindowManagerInternal.showImePostLayout(token);
} catch (RemoteException e) {
}
break;