diff options
| author | Karl Rosaen <krosaen@android.com> | 2009-09-04 14:05:17 -0700 |
|---|---|---|
| committer | Karl Rosaen <krosaen@android.com> | 2009-09-04 14:05:17 -0700 |
| commit | 96836e1e8a79563b84b21bf73a359cfde4042dff (patch) | |
| tree | e10b51ca6c6f9743edd3eac41dafec946a9c55af /core/java | |
| parent | 93a751d6adc00cbc6fb564b27592fc5730a655ef (diff) | |
Don't toggle between in app and global search on repeat key events.
Fixes http://b/issue?id=2019231.
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/app/SearchDialog.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index f776452a945f..f474f06c973e 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -745,7 +745,7 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS return true; } - if (keyCode == KeyEvent.KEYCODE_SEARCH) { + if (keyCode == KeyEvent.KEYCODE_SEARCH && event.getRepeatCount() < 1) { // If the search key is pressed, toggle between global and in-app search. If we are // currently doing global search and there is no in-app search context to toggle to, // just don't do anything. |
