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

Commit 107039f9 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 24010 into eclair

* changes:
  Don't toggle between in app and global search on repeat key events.
parents 3c72fff0 96836e1e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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.