diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index 07850290f67d6..fdb619ae2da6e 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -1572,6 +1572,15 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS protected void replaceText(CharSequence text) { } + /** + * We override this method to avoid an extra onItemClick being called on the + * drop-down's OnItemClickListener by {@link AutoCompleteTextView#onKeyUp(int, KeyEvent)} + * when an item is clicked with the trackball. + */ + @Override + public void performCompletion() { + } + /** * We override this method so that we can allow a threshold of zero, which ACTV does not. */