Merge "Make an ending IME animation clean up old inputs for the same entry" into tm-qpr-dev

This commit is contained in:
Justin Weir
2023-01-23 15:10:13 +00:00
committed by Android (Google) Code Review

View File

@@ -303,7 +303,8 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
mEntry.mRemoteEditImeVisible = editTextRootWindowInsets != null
&& editTextRootWindowInsets.isVisible(WindowInsets.Type.ime());
if (!mEntry.mRemoteEditImeVisible && !mEditText.mShowImeOnInputConnection) {
mController.removeRemoteInput(mEntry, mToken);
// Pass null to ensure all inputs are cleared for this entry b/227115380
mController.removeRemoteInput(mEntry, null);
}
}
}