am 107039f9: Merge change 24010 into eclair

Merge commit '107039f94888fce212e0965b74971727d2b01b82' into eclair-plus-aosp

* commit '107039f94888fce212e0965b74971727d2b01b82':
  Don't toggle between in app and global search on repeat key events.
This commit is contained in:
Karl Rosaen
2009-09-04 14:25:30 -07:00
committed by Android Git Automerger

View File

@@ -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.