Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48bd5959 authored by tibbi's avatar tibbi
Browse files

úshow proper children count at OTG folders

parent 6cfd0d74
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -319,7 +319,7 @@ fun Context.getOTGItems(path: String, callback: (ArrayList<FileDirItem>) -> Unit
        if (file.exists()) {
            val filePath = file.uri.toString().substring(basePath.length)
            val decodedPath = OTG_PATH + "/" + URLDecoder.decode(filePath, "UTF-8")
            items.add(FileDirItem(decodedPath, file.name, file.isDirectory, 0, file.length()))
            items.add(FileDirItem(decodedPath, file.name, file.isDirectory, file.listFiles()?.size ?: 0, file.length()))
        }
    }
    callback(items)