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:
@@ -103,7 +103,7 @@ public class ShareIntentActivity extends BaseBugleActivity implements
|
||||
}
|
||||
mDraftMessage =
|
||||
sharedText != null ? MessageData.createSharedMessage(sharedText) : null;
|
||||
} else if (ContentType.isMediaType(contentType)) {
|
||||
} else if (PendingAttachmentData.isSupportedMediaType(contentType)) {
|
||||
if (contentUri != null) {
|
||||
mDraftMessage = MessageData.createSharedMessage(null);
|
||||
addSharedPartToDraft(contentType, contentUri);
|
||||
@@ -139,7 +139,7 @@ public class ShareIntentActivity extends BaseBugleActivity implements
|
||||
}
|
||||
strBuffer.append(sharedText);
|
||||
}
|
||||
} else if (ContentType.isMediaType(actualContentType)) {
|
||||
} else if (PendingAttachmentData.isSupportedMediaType(actualContentType)) {
|
||||
uriMap.put(uri, actualContentType);
|
||||
} else {
|
||||
// Unsupported content type.
|
||||
|
||||
Reference in New Issue
Block a user