diff options
author | Amith Yamasani <yamasani@google.com> | 2010-02-11 07:29:45 -0800 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2010-02-11 07:29:45 -0800 |
commit | 5e2c81dca659aaf392e99574f15768caea24c002 (patch) | |
tree | ac765954b7a9e366415be1de4797a7dd72c43c64 /core | |
parent | 2980d10c1a77172556acf7875a2781ffc9881c15 (diff) | |
download | frameworks_base-5e2c81dca659aaf392e99574f15768caea24c002.zip frameworks_base-5e2c81dca659aaf392e99574f15768caea24c002.tar.gz frameworks_base-5e2c81dca659aaf392e99574f15768caea24c002.tar.bz2 |
Remove in-app to global search toggle. Bug: 2436539
Quick fix to ignore the search key in SearchDialog. Need to
cleanup related code.
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/app/SearchDialog.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index 7fa5b08..63e95c0 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -761,12 +761,6 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS return false; } - if (keyCode == KeyEvent.KEYCODE_SEARCH && event.getRepeatCount() == 0) { - event.startTracking(); - // Consume search key for later use. - return true; - } - // if it's an action specified by the searchable activity, launch the // entered query with the action key SearchableInfo.ActionKeyInfo actionKey = mSearchable.findActionKey(keyCode); @@ -778,24 +772,6 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS return super.onKeyDown(keyCode, event); } - @Override - public boolean onKeyUp(int keyCode, KeyEvent event) { - if (DBG) Log.d(LOG_TAG, "onKeyUp(" + keyCode + "," + event + ")"); - if (mSearchable == null) { - return false; - } - - if (keyCode == KeyEvent.KEYCODE_SEARCH && event.isTracking() - && !event.isCanceled()) { - // 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. - return toggleGlobalSearch(); - } - - return super.onKeyUp(keyCode, event); - } - /** * Callback to watch the textedit field for empty/non-empty */ |