mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-06-05 22:09:15 +02:00
update commons to 3.12.17
This commit is contained in:
@ -105,10 +105,12 @@ class RootHelpers {
|
||||
files.forEachIndexed { index, fileDirItem ->
|
||||
var line = lines[index]
|
||||
if (line.isNotEmpty() && line != "0") {
|
||||
line = line.substring(fileDirItem.path.length).trim()
|
||||
val size = line.split(" ")[0]
|
||||
if (size.areDigitsOnly()) {
|
||||
fileDirItem.size = size.toLong()
|
||||
if (line.length >= fileDirItem.path.length) {
|
||||
line = line.substring(fileDirItem.path.length).trim()
|
||||
val size = line.split(" ")[0]
|
||||
if (size.areDigitsOnly()) {
|
||||
fileDirItem.size = size.toLong()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user