Merge "Remove IME surface when window unbinds" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-03-06 06:14:02 +00:00
committed by Android (Google) Code Review

View File

@@ -611,6 +611,10 @@ public class InputMethodService extends AbstractInputMethodService {
public void unbindInput() { public void unbindInput() {
if (DEBUG) Log.v(TAG, "unbindInput(): binding=" + mInputBinding if (DEBUG) Log.v(TAG, "unbindInput(): binding=" + mInputBinding
+ " ic=" + mInputConnection); + " 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(); onUnbindInput();
mInputBinding = null; mInputBinding = null;
mInputConnection = null; mInputConnection = null;