diff options
| author | Bjorn Bringert <bringert@android.com> | 2009-07-08 21:49:42 +0100 |
|---|---|---|
| committer | Bjorn Bringert <bringert@android.com> | 2009-07-08 21:49:42 +0100 |
| commit | ec8ee34e06f7d3f55f284da48585a8eecaa9b4b4 (patch) | |
| tree | ec707145c769df5337358c77d8e8bf8bcd910342 /core/java/android/app/SearchDialog.java | |
| parent | 91b0a7013e4b6d170087cb4c9a3c35b787f92a6b (diff) | |
| download | frameworks_base-ec8ee34e06f7d3f55f284da48585a8eecaa9b4b4.zip frameworks_base-ec8ee34e06f7d3f55f284da48585a8eecaa9b4b4.tar.gz frameworks_base-ec8ee34e06f7d3f55f284da48585a8eecaa9b4b4.tar.bz2 | |
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
Diffstat (limited to 'core/java/android/app/SearchDialog.java')
| -rw-r--r-- | core/java/android/app/SearchDialog.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index 022a9d9..6d6aca4 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -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(); } /** |
