mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-11-05 04:23:00 -05:00
Use context access to sdCardPath
This commit is contained in:
1 parent
4cca280de7
commit
a0419ed02c
1 file changed
+1
-1
+1
-1
@@ -324,7 +324,7 @@ class StorageFragment(context: Context, attributeSet: AttributeSet) : MyViewPage
|
||||
private fun scanVolume(volumeName: String, root: File) {
|
||||
val paths = mutableListOf<String>()
|
||||
if (context.isPathOnSD(root.path)) {
|
||||
File(context.config.sdCardPath).walkBottomUp().forEach {
|
||||
File(context.sdCardPath).walkBottomUp().forEach {
|
||||
paths.add(it.path)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user