Merge "Don't dismiss IME when changing active RemoteInput" into sc-dev am: 3b5e4d2936

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14937173

Change-Id: I26605e17b4bd55c92192fb36e8ceaddc00b1d6ba
This commit is contained in:
TreeHugger Robot
2021-06-14 16:19:58 +00:00
committed by Automerger Merge Worker

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();
}
}