diff options
| author | Jorge Ruesga <jorge@ruesga.com> | 2012-11-23 00:20:40 +0100 |
|---|---|---|
| committer | Jorge Ruesga <jorge@ruesga.com> | 2012-11-23 00:20:40 +0100 |
| commit | a3fc4d3ac317cdeb9a20953aa0f55c82afbc16d7 (patch) | |
| tree | a10dd096a1786d4cfc199aa3f788e0355be02ce4 | |
| parent | 5c593e99d09365105ec20593d647d3cb613d6759 (diff) | |
| download | android_packages_apps_Email-a3fc4d3ac317cdeb9a20953aa0f55c82afbc16d7.tar.gz android_packages_apps_Email-a3fc4d3ac317cdeb9a20953aa0f55c82afbc16d7.tar.bz2 android_packages_apps_Email-a3fc4d3ac317cdeb9a20953aa0f55c82afbc16d7.zip | |
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
| -rw-r--r-- | src/com/android/email/activity/MessageCompose.java | 2 |
1 files changed, 1 insertions, 1 deletions
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)), |
