mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
adding a couple changes related to handling GET_CONTENT intent with multiple files
This commit is contained in:
@ -318,7 +318,7 @@ class MainActivity : SimpleActivity() {
|
||||
|
||||
fun pickedPaths(paths: ArrayList<String>) {
|
||||
val newPaths = paths.map { getFilePublicUri(File(it), BuildConfig.APPLICATION_ID).toString() } as ArrayList
|
||||
val clipData = ClipData("Attachment", arrayOf(newPaths.getMimeType()), ClipData.Item(newPaths.removeAt(0)))
|
||||
val clipData = ClipData("Attachment", arrayOf(paths.getMimeType()), ClipData.Item(newPaths.removeAt(0)))
|
||||
|
||||
newPaths.forEach {
|
||||
clipData.addItem(ClipData.Item(it))
|
||||
|
Reference in New Issue
Block a user