Add support for text/vCard and text/vCalendar MIME type
A vcf file can alias to both "text/vCard" and "text/x-vCard" MIME types and an ics file can alias to "text/vCalendar" as well as "text/x-vCalendar". However, if LineageOS does not get the "x-" MIME type, it will incorrectly display an empty MMS. Change-Id: I0b63767092c0e7422ff3592983d94b903d9e8cc5
This commit is contained in:
@@ -30,8 +30,10 @@ public class ContentType {
|
||||
|
||||
public static final String TEXT_PLAIN = "text/plain";
|
||||
public static final String TEXT_HTML = "text/html";
|
||||
public static final String TEXT_VCALENDAR = "text/x-vCalendar";
|
||||
public static final String TEXT_VCARD = "text/x-vCard";
|
||||
public static final String TEXT_VCALENDAR = "text/vCalendar";
|
||||
public static final String TEXT_VCARD = "text/vCard";
|
||||
public static final String TEXT_X_VCALENDAR = "text/x-vCalendar";
|
||||
public static final String TEXT_X_VCARD = "text/x-vCard";
|
||||
|
||||
public static final String IMAGE_UNSPECIFIED = "image/*";
|
||||
public static final String IMAGE_JPEG = "image/jpeg";
|
||||
@@ -85,6 +87,8 @@ public class ContentType {
|
||||
sSupportedContentTypes.add(TEXT_HTML);
|
||||
sSupportedContentTypes.add(TEXT_VCALENDAR);
|
||||
sSupportedContentTypes.add(TEXT_VCARD);
|
||||
sSupportedContentTypes.add(TEXT_X_VCALENDAR);
|
||||
sSupportedContentTypes.add(TEXT_X_VCARD);
|
||||
|
||||
sSupportedContentTypes.add(IMAGE_JPEG);
|
||||
sSupportedContentTypes.add(IMAGE_GIF);
|
||||
|
||||
Reference in New Issue
Block a user