mirror of
				https://github.com/SimpleMobileTools/Simple-File-Manager.git
				synced 2025-06-05 22:09:15 +02:00 
			
		
		
		
	Use context access to sdCardPath
This commit is contained in:
		| @@ -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) | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user