Set clear_when_task_reset flag on get content intent

Bug: 6401627
Change-Id: I546d51e605bf9483bd36f56adf5b21c1b3cd4c70
This commit is contained in:
Paul Westbrook 2012-04-26 18:48:08 -07:00
parent 65432baf25
commit d658fb6cac
1 changed files with 1 additions and 0 deletions

View File

@ -1537,6 +1537,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
private void onAddAttachment() {
Intent i = new Intent(Intent.ACTION_GET_CONTENT);
i.addCategory(Intent.CATEGORY_OPENABLE);
i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
i.setType(AttachmentUtilities.ACCEPTABLE_ATTACHMENT_SEND_UI_TYPES[0]);
mPickingAttachment = true;
startActivityForResult(