File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
app/src/main/kotlin/org/fossify/filemanager/activities Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,11 @@ class SaveAsActivity : SimpleActivity() {
3636 }
3737
3838 val source = intent.getParcelableExtra<Uri >(Intent .EXTRA_STREAM )!!
39- val filename = getFilenameFromContentUri(source) ? : source.toString().getFilenameFromPath()
40- val mimeType = contentResolver.getType(source) ? : intent.getType()?.takeIf { it != " */*" } ? : filename.getMimeType()
39+ val filename = getFilenameFromContentUri(source)
40+ ? : source.toString().getFilenameFromPath()
41+ val mimeType = contentResolver.getType(source)
42+ ? : intent.type?.takeIf { it != " */*" }
43+ ? : filename.getMimeType()
4144 val inputStream = contentResolver.openInputStream(source)
4245
4346 val destinationPath = " $destination /$filename "
You can’t perform that action at this time.
0 commit comments