Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4e9e79d authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Hide Keyboard when the remote input view became invisible" into sc-dev am: 89b98e93

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: If86ecd3055f417b327178a7e06f696ed4a7d3574
parents 2b438fda 89b98e93
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -561,6 +561,11 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
        super.onVisibilityChanged(changedView, visibility);
        if (changedView == this && mOnVisibilityChangedListener != null) {
            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()) {
                mEditText.hideIme();
            }
        }
    }