Skip to content

Commit d22d469

Browse files
committed
append get_content data as uris, not strings
1 parent fc47d41 commit d22d469

File tree

1 file changed

+3
-2
lines changed
  • app/src/main/kotlin/com/simplemobiletools/filemanager/activities

1 file changed

+3
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/filemanager/activities/MainActivity.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,9 @@ class MainActivity : SimpleActivity() {
191191
}
192192

193193
private fun goHome() {
194-
if (config.homeFolder != fragment.currentPath)
194+
if (config.homeFolder != fragment.currentPath) {
195195
openPath(config.homeFolder)
196+
}
196197
}
197198

198199
private fun showSortingDialog() {
@@ -318,7 +319,7 @@ class MainActivity : SimpleActivity() {
318319
}
319320

320321
fun pickedPaths(paths: ArrayList<String>) {
321-
val newPaths = paths.map { getFilePublicUri(File(it), BuildConfig.APPLICATION_ID).toString() } as ArrayList
322+
val newPaths = paths.map { getFilePublicUri(File(it), BuildConfig.APPLICATION_ID) } as ArrayList
322323
val clipData = ClipData("Attachment", arrayOf(paths.getMimeType()), ClipData.Item(newPaths.removeAt(0)))
323324

324325
newPaths.forEach {

0 commit comments

Comments
 (0)