Don't dismiss IME when changing active RemoteInput

Fixes: 189468877
Test: manual, atest
Change-Id: Iec8fe2d0dc309d62147061086069e5bf5b87abdf
This commit is contained in:
Steve Elliott
2021-06-10 11:36:10 -04:00
parent 10a6b054ff
commit 3d69c8bd3a

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