MessageView: use FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET when viewing attachments.

Bug 2180995.
This commit is contained in:
Mihai Preda 2009-10-12 13:16:28 +02:00
parent 255dba84f1
commit 2bc47f24a4

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();