am 42b7af57: Dismiss QSB dialog when doing an in-app global search.

Merge commit '42b7af57c59d8b7cb9be3fea713478424b53b7fc' into eclair-plus-aosp

* commit '42b7af57c59d8b7cb9be3fea713478424b53b7fc':
  Dismiss QSB dialog when doing an in-app global search.
This commit is contained in:
Bryan Mawhinney
2009-09-25 04:15:01 -07:00
committed by Android Git Automerger

View File

@@ -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