Merge "Remove IME surface when window unbinds" into rvc-dev am: 9cfb5412e3

Change-Id: Icbdaed9d914c9068fed45f1c6c3552ea2cf0d755
This commit is contained in:
Automerger Merge Worker
2020-03-06 06:22:06 +00:00

View File

@@ -611,6 +611,10 @@ public class InputMethodService extends AbstractInputMethodService {
public void unbindInput() {
if (DEBUG) Log.v(TAG, "unbindInput(): binding=" + mInputBinding
+ " ic=" + mInputConnection);
// Unbind input is per process per display.
// TODO(b/150902448): free-up IME surface when target is changing.
// e.g. DisplayContent#setInputMethodTarget()
removeImeSurface();
onUnbindInput();
mInputBinding = null;
mInputConnection = null;