Allow acceptable media types only for sharing

Test: Manual

Change-Id: I20d5f8abf2ba7b7b620aa2a4ec1e0a43091f98c2
Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
This commit is contained in:
Taesu Lee
2020-02-05 13:06:34 +09:00
parent 2716c26c23
commit a8b76eafc4
2 changed files with 7 additions and 2 deletions

View File

@@ -341,6 +341,11 @@ public class MessagePartData implements Parcelable {
return mHeight;
}
public static boolean isSupportedMediaType(final String contentType) {
return ContentType.isVCardType(contentType)
|| Arrays.asList(ACCEPTABLE_GALLERY_MEDIA_TYPES).contains(contentType);
}
/**
*
* @return true if this part can only exist by itself, with no other attachments