diff options
| author | 2009-09-25 11:09:55 +0100 | |
|---|---|---|
| committer | 2009-09-25 11:09:55 +0100 | |
| commit | 42b7af57c59d8b7cb9be3fea713478424b53b7fc (patch) | |
| tree | 4bc8f93dead6976c2b5211c0fb8adcad4dafc612 | |
| parent | 3e2ac8843489e83c4171aabcfe98769b5159a5c8 (diff) | |
Dismiss QSB dialog when doing an in-app global search.
This prevents QSB from obscuring the results when they are handled
by the current application.
Bug: 2141208
Change-Id: I6f848aa2003c75b97effe1d3d2af5316ad4fbf92
| -rw-r--r-- | core/java/android/app/SearchDialog.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java index 6d55f06dc6eb..486994034510 100644 --- a/core/java/android/app/SearchDialog.java +++ b/core/java/android/app/SearchDialog.java @@ -1304,6 +1304,12 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS // source. this is because GlobalSearch may not have permission to launch the // intent, and to avoid the extra step of going through GlobalSearch. if (mGlobalSearchMode) { + if (mStoredComponentName != null) { + // If we're embedded in an application, dismiss the dialog. + // This ensures that if the intent is handled by the current + // activity, it's not obscured by the dialog. + dismiss(); + } launchGlobalSearchIntent(intent); } else { // If the intent was created from a suggestion, it will always have an explicit |