Merge change 26355 into eclair
* changes:
Use FLAG_ACTIVITY_CLEAR_TOP when launching search suggestions.
diff --git a/core/java/android/app/SearchDialog.java b/core/java/android/app/SearchDialog.java
index c0a0480..a2c95f4 100644
--- a/core/java/android/app/SearchDialog.java
+++ b/core/java/android/app/SearchDialog.java
@@ -1617,6 +1617,9 @@
// Now build the Intent
Intent intent = new Intent(action);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
+ // We need CLEAR_TOP to avoid reusing an old task that has other activities
+ // on top of the one we want.
+ intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
if (data != null) {
intent.setData(data);
}