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

Commit 967f6199 authored by Adrian Roos's avatar Adrian Roos
Browse files

Don't close RemoteInputView on window focus loss

Fixes issues where the status bar would temporarily
lose focus to things like the IME or auto correction
popups.

Bug: 27340422
Change-Id: I0af6e89179b78b147eee1091361da1f8a97f186b
parent c04cf4ba
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -248,10 +248,12 @@ public class RemoteInputView extends LinearLayout implements View.OnClickListene
        }

        @Override
        protected void onFocusLost() {
            super.onFocusLost();
        protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) {
            super.onFocusChanged(focused, direction, previouslyFocusedRect);
            if (!focused) {
                defocusIfNeeded();
            }
        }

        @Override
        public boolean requestRectangleOnScreen(Rect r) {