Use context access to sdCardPath

This commit is contained in:
Ensar Sarajčić 2023-09-07 11:44:16 +02:00
parent 4cca280de7
commit a0419ed02c
1 changed files with 1 additions and 1 deletions

View File

@ -324,7 +324,7 @@ class StorageFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
private fun scanVolume(volumeName: String, root: File) { private fun scanVolume(volumeName: String, root: File) {
val paths = mutableListOf<String>() val paths = mutableListOf<String>()
if (context.isPathOnSD(root.path)) { if (context.isPathOnSD(root.path)) {
File(context.config.sdCardPath).walkBottomUp().forEach { File(context.sdCardPath).walkBottomUp().forEach {
paths.add(it.path) paths.add(it.path)
} }
} }