From a3fc4d3ac317cdeb9a20953aa0f55c82afbc16d7 Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Fri, 23 Nov 2012 00:20:40 +0100 Subject: Email: Use */* mime/type on add_attachment This change replace the current intent type passed to ACTION_GET_CONTENT (image/*) for a more properly */* intent type. This allow add/request to pick any kind of files (not only images). Change-Id: Iaf596590cbbe42d6f088db61222afa495ea7d9fc --- src/com/android/email/activity/MessageCompose.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/email/activity/MessageCompose.java b/src/com/android/email/activity/MessageCompose.java index 0ac7301da..eb8086e12 100644 --- a/src/com/android/email/activity/MessageCompose.java +++ b/src/com/android/email/activity/MessageCompose.java @@ -1555,7 +1555,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus 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]); + i.setType(AttachmentUtilities.ACCEPTABLE_ATTACHMENT_SEND_INTENT_TYPES[0]); mPickingAttachment = true; startActivityForResult( Intent.createChooser(i, getString(R.string.choose_attachment_dialog_title)), -- cgit v1.2.3