Merge change I29232f2a into eclair
* changes: Only dismiss search dialog after launching intent.
This commit is contained in:
@ -1314,13 +1314,13 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
|
|||||||
// source. this is because GlobalSearch may not have permission to launch the
|
// source. this is because GlobalSearch may not have permission to launch the
|
||||||
// intent, and to avoid the extra step of going through GlobalSearch.
|
// intent, and to avoid the extra step of going through GlobalSearch.
|
||||||
if (mGlobalSearchMode) {
|
if (mGlobalSearchMode) {
|
||||||
|
launchGlobalSearchIntent(intent);
|
||||||
if (mStoredComponentName != null) {
|
if (mStoredComponentName != null) {
|
||||||
// If we're embedded in an application, dismiss the dialog.
|
// If we're embedded in an application, dismiss the dialog.
|
||||||
// This ensures that if the intent is handled by the current
|
// This ensures that if the intent is handled by the current
|
||||||
// activity, it's not obscured by the dialog.
|
// activity, it's not obscured by the dialog.
|
||||||
dismiss();
|
dismiss();
|
||||||
}
|
}
|
||||||
launchGlobalSearchIntent(intent);
|
|
||||||
} else {
|
} else {
|
||||||
// If the intent was created from a suggestion, it will always have an explicit
|
// If the intent was created from a suggestion, it will always have an explicit
|
||||||
// component here.
|
// component here.
|
||||||
|
Reference in New Issue
Block a user