Merge change 26355 into eclair
* changes: Use FLAG_ACTIVITY_CLEAR_TOP when launching search suggestions.
This commit is contained in:
@@ -1617,6 +1617,9 @@ public class SearchDialog extends Dialog implements OnItemClickListener, OnItemS
|
|||||||
// Now build the Intent
|
// Now build the Intent
|
||||||
Intent intent = new Intent(action);
|
Intent intent = new Intent(action);
|
||||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
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) {
|
if (data != null) {
|
||||||
intent.setData(data);
|
intent.setData(data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user