Merge "Enabling New Insets API with Multi-Session IME." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
09419a8129
@@ -1347,13 +1347,14 @@ public final class MultiClientInputMethodManagerService {
|
|||||||
for (WindowInfo windowInfo : clientInfo.mWindowMap.values()) {
|
for (WindowInfo windowInfo : clientInfo.mWindowMap.values()) {
|
||||||
if (windowInfo.mWindowHandle == targetWindowHandle) {
|
if (windowInfo.mWindowHandle == targetWindowHandle) {
|
||||||
final IBinder targetWindowToken = windowInfo.mWindowToken;
|
final IBinder targetWindowToken = windowInfo.mWindowToken;
|
||||||
// TODO(yukawa): Report targetWindowToken and targetWindowToken to WMS.
|
|
||||||
if (DEBUG) {
|
if (DEBUG) {
|
||||||
Slog.v(TAG, "reportImeWindowTarget"
|
Slog.v(TAG, "reportImeWindowTarget"
|
||||||
+ " clientId=" + clientId
|
+ " clientId=" + clientId
|
||||||
+ " imeWindowToken=" + imeWindowToken
|
+ " imeWindowToken=" + imeWindowToken
|
||||||
+ " targetWindowToken=" + targetWindowToken);
|
+ " targetWindowToken=" + targetWindowToken);
|
||||||
}
|
}
|
||||||
|
mIWindowManagerInternal.updateInputMethodTargetWindow(
|
||||||
|
imeWindowToken, targetWindowToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// not found.
|
// not found.
|
||||||
@@ -1490,6 +1491,9 @@ public final class MultiClientInputMethodManagerService {
|
|||||||
case InputMethodClientState.ALREADY_SENT_BIND_RESULT:
|
case InputMethodClientState.ALREADY_SENT_BIND_RESULT:
|
||||||
try {
|
try {
|
||||||
clientInfo.mMSInputMethodSession.showSoftInput(flags, resultReceiver);
|
clientInfo.mMSInputMethodSession.showSoftInput(flags, resultReceiver);
|
||||||
|
|
||||||
|
// Forcing WM to show IME on imeTargetWindow
|
||||||
|
mWindowManagerInternal.showImePostLayout(token);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user