am 2bc47f24: MessageView: use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET when viewing attachments.

Merge commit '2bc47f24a4db464f58977ae808f754e2a9191daa' into eclair-mr2-plus-aosp

* commit '2bc47f24a4db464f58977ae808f754e2a9191daa':
  MessageView: use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET when viewing attachments.
This commit is contained in:
Mihai Preda 2009-10-13 04:01:46 -07:00 committed by Android Git Automerger
commit 10a1facb8d

View File

@ -1543,7 +1543,8 @@ public class MessageView extends Activity implements OnClickListener {
try {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(contentUri);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION
| Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
startActivity(intent);
} catch (ActivityNotFoundException e) {
mHandler.attachmentViewError();