Merge pull request #109528 from syntaxerror247/drive-selection-issue

Fix drive selection issue on Android
This commit is contained in:
Thaddeus Crews 2025-08-13 18:42:13 -05:00
commit 90ba13bd0b
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
3 changed files with 8 additions and 3 deletions

View file

@ -159,7 +159,11 @@ internal class FilesystemDirectoryAccess(private val context: Context, private v
}
val storageVolume = storageManager.storageVolumes[drive]
return storageVolume.getDescription(context)
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
storageVolume.directory?.absolutePath ?: ""
} else {
""
}
}
override fun makeDir(dir: String): Boolean {