allowing text content types to be shared via android share menu
This commit is contained in:
parent
01c70e165d
commit
9725396582
|
@ -0,0 +1 @@
|
||||||
|
Allow sharing text based content via android's share menu (eg .ics files)
|
|
@ -214,7 +214,7 @@ class AttachmentsHelper(val context: Context, val callback: Callback) : Restorab
|
||||||
it.toContentAttachmentData()
|
it.toContentAttachmentData()
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
} else if (type.startsWith("application") || type.startsWith("file") || type.startsWith("*")) {
|
} else if (type.startsWith("application") || type.startsWith("file") || type.startsWith("text") || type.startsWith("*")) {
|
||||||
callback.onContentAttachmentsReady(
|
callback.onContentAttachmentsReady(
|
||||||
MultiPicker.get(MultiPicker.FILE).getIncomingFiles(context, intent).map {
|
MultiPicker.get(MultiPicker.FILE).getIncomingFiles(context, intent).map {
|
||||||
it.toContentAttachmentData()
|
it.toContentAttachmentData()
|
||||||
|
|
Loading…
Reference in New Issue