diff options
| author | 2009-07-20 14:34:16 -0700 | |
|---|---|---|
| committer | 2009-07-20 14:34:16 -0700 | |
| commit | 5d22f9bbee623dfdf543365489f559da57838d24 (patch) | |
| tree | 0d2a368dbf3d45471683b09638c51b8a6018ab6c | |
| parent | 876627d8c52300608c8c716f980a8686f43bf476 (diff) | |
add comment to illuminate why we only dismiss the dialog when launching an intent for in app search
| -rw-r--r-- | core/java/android/app/SearchDialog.java | 3 |
1 files changed, 3 insertions, 0 deletions
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(); } |