From 5d22f9bbee623dfdf543365489f559da57838d24 Mon Sep 17 00:00:00 2001 From: Karl Rosaen Date: Mon, 20 Jul 2009 14:34:16 -0700 Subject: add comment to illuminate why we only dismiss the dialog when launching an intent for in app search --- core/java/android/app/SearchDialog.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index c7d26d232dae..27c637652d5e 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -1247,6 +1247,9 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS Log.d(LOG_TAG, "launching " + intent); getContext().startActivity(intent); + // in global search mode, SearchDialogWrapper#performActivityResuming will handle hiding + // the dialog when the next activity starts, but for in-app search, we still need to + // dismiss the dialog. if (!mGlobalSearchMode) { dismiss(); } -- cgit v1.2.3-59-g8ed1b