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:
@@ -801,7 +801,7 @@ public class PduPersister {
|
||||
// reliable.
|
||||
final String encodedDataString = new EncodedStringValue(charset, data).getString();
|
||||
if (encodedDataString != null && encodedDataString.startsWith(BEGIN_VCARD)) {
|
||||
contentType = ContentType.TEXT_VCARD;
|
||||
contentType = ContentType.TEXT_X_VCARD;
|
||||
part.setContentType(contentType.getBytes());
|
||||
if (LogUtil.isLoggable(TAG, LogUtil.DEBUG)) {
|
||||
LogUtil.d(TAG, "PduPersister.persistPart part: " + uri + " contentType: " +
|
||||
|
||||
Reference in New Issue
Block a user