From a0419ed02cbe56366135c603a7792838746fac08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 7 Sep 2023 11:44:16 +0200 Subject: [PATCH] Use context access to sdCardPath --- .../filemanager/pro/fragments/StorageFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt index fc4997f4..327ac5df 100644 --- a/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/filemanager/pro/fragments/StorageFragment.kt @@ -324,7 +324,7 @@ class StorageFragment(context: Context, attributeSet: AttributeSet) : MyViewPage private fun scanVolume(volumeName: String, root: File) { val paths = mutableListOf() if (context.isPathOnSD(root.path)) { - File(context.config.sdCardPath).walkBottomUp().forEach { + File(context.sdCardPath).walkBottomUp().forEach { paths.add(it.path) } }