diff options
| author | 2009-07-20 15:36:31 -0700 | |
|---|---|---|
| committer | 2009-07-20 15:36:31 -0700 | |
| commit | 02077c4b4660528ba2a1563f79e227317f8842ca (patch) | |
| tree | 629475706b29c3212e45a6162f271c3f5cac50a4 | |
| parent | e6327ea3e412e921bb0efd7eda96abf94b8c3d0a (diff) | |
| parent | 2acbec4918db4ab6eca32cf427ffd771c9efe35f (diff) | |
am 2acbec49: Merge change 7941 into donut
Merge commit '2acbec4918db4ab6eca32cf427ffd771c9efe35f'
* commit '2acbec4918db4ab6eca32cf427ffd771c9efe35f':
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(); } |