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
This commit is contained in:
Bjorn Bringert
2009-07-08 21:49:42 +01:00
parent 91b0a7013e
commit ec8ee34e06

View File

@@ -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();
}
/**