You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix drive selection issue on Android
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user