Fixed to work on old Androids

This commit is contained in:
tom5079
2020-09-13 21:42:02 +09:00
parent 701017d2ca
commit 0f8c68b22e
3 changed files with 4 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ class DownloadLocationDialogFragment : DialogFragment() {
if (key == null) entries[key]!!.location_available.text = downloadFolder
}
else
Preferences["download_folder"] = File(directory).canonicalPath
Preferences["download_folder"] = File(directory).toURI().toString()
}
}
else -> super.onActivityResult(requestCode, resultCode, data)