Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 916b2ca9 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 26355 into eclair

* changes:
  Use FLAG_ACTIVITY_CLEAR_TOP when launching search suggestions.
parents 78f180af 442da48b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);
        }