am 916b2ca9: Merge change 26355 into eclair
Merge commit '916b2ca9375b0a6a54e2bef2b2b5faab23ac3cfb' into eclair-plus-aosp * commit '916b2ca9375b0a6a54e2bef2b2b5faab23ac3cfb': 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
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user