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

Commit 521450a5 authored by Android Build Merger (Role)'s avatar Android Build Merger (Role) Committed by Android (Google) Code Review
Browse files

Merge "Merge "Fix IME displayed behind the notification shade" into pi-dev am:...

Merge "Merge "Fix IME displayed behind the notification shade" into pi-dev am: c0797c85" into pi-dev-plus-aosp
parents 934df382 da6daa4e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -565,10 +565,12 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene

        @Override
        public boolean onKeyPreIme(int keyCode, KeyEvent event) {
            if (event.getKeyCode() == KeyEvent.KEYCODE_BACK) {
                mRemoteInputView.mRemoteInputQuickSettingsDisabler.setRemoteInputActive(false);
            // When BACK key is pressed, this method would be invoked twice.
            if (event.getKeyCode() == KeyEvent.KEYCODE_BACK &&
                    event.getAction() == KeyEvent.ACTION_UP) {
                defocusIfNeeded(true /* animate */);
            }
            return super.dispatchKeyEvent(event);
            return super.onKeyPreIme(keyCode, event);
        }

        @Override