Merge "Don't dismiss IME when changing active RemoteInput" into sc-dev

This commit is contained in:
TreeHugger Robot
2021-06-14 16:06:50 +00:00
committed by Android (Google) Code Review

View File

@@ -777,7 +777,8 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
mOnVisibilityChangedListener.accept(visibility == VISIBLE);
// Hide soft-keyboard when the input view became invisible
// (i.e. The notification shade collapsed by pressing the home key)
if (visibility != VISIBLE && !mEditText.isVisibleToUser()) {
if (visibility != VISIBLE && !mEditText.isVisibleToUser()
&& !mController.isRemoteInputActive()) {
mEditText.hideIme();
}
}