From 09866af013539355d019acdf6a15cdf89ac65d6b Mon Sep 17 00:00:00 2001 From: Andy Stadler Date: Mon, 4 May 2009 10:28:41 -0700 Subject: [PATCH] AI 148257: Allow preview of any files (mime type */*) by removing the original filters. This affects preview, not download. This does not preflight the launch at all, it is very simple as it simply downloads the attachment and then tries to open it. If no activity is found, it uses a toast to say "couldn't do that." A better fix will be to pre-check the mime type to see if there are any intent filters to handle it. BUG=1650669 Automated import of CL 148257 --- src/com/android/email/Email.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/android/email/Email.java b/src/com/android/email/Email.java index b29fc9b28..e00408eec 100644 --- a/src/com/android/email/Email.java +++ b/src/com/android/email/Email.java @@ -64,9 +64,7 @@ public class Email extends Application { * The MIME type(s) of attachments we're willing to view. */ public static final String[] ACCEPTABLE_ATTACHMENT_VIEW_TYPES = new String[] { - "image/*", - "audio/*", - "text/*", + "*/*", }; /**