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

Commit ec8ee34e authored by Bjorn Bringert's avatar Bjorn Bringert
Browse files

Hide soft keyboard in SearchDialog.dismiss()

Before it was hidden in cancel(), which does not get
called when the search dialog is dismissed by clicking
on a suggestion.

Fixes http://b/issue?id=1967633
parent 91b0a701
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -991,7 +991,7 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
    };

    @Override
    public void cancel() {
    public void dismiss() {
        if (!isShowing()) return;

        // We made sure the IME was displayed, so also make sure it is closed
@@ -1003,7 +1003,7 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
                    getWindow().getDecorView().getWindowToken(), 0);
        }
        
        super.cancel();
        super.dismiss();
    }
    
    /**