Merge change 26355 into eclair

* changes:
  Use FLAG_ACTIVITY_CLEAR_TOP when launching search suggestions.
This commit is contained in:
Android (Google) Code Review
2009-09-22 15:37:15 -04:00

View File

@@ -1617,6 +1617,9 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
// 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);
}