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

Commit acd8d2d2 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Prevent SearchView dropdown from showing up when SearchView is hidden.

Bug: 3257833
parent afeffb74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1271,7 +1271,7 @@ public class SearchView extends LinearLayout {
        public void onWindowFocusChanged(boolean hasWindowFocus) {
            super.onWindowFocusChanged(hasWindowFocus);

            if (hasWindowFocus) {
            if (hasWindowFocus && mSearchView.hasFocus() && getVisibility() == VISIBLE) {
                InputMethodManager inputManager = (InputMethodManager) getContext()
                        .getSystemService(Context.INPUT_METHOD_SERVICE);
                inputManager.showSoftInput(this, 0);