improve folder showing at the decompressing activity
This commit is contained in:
parent
e27841dbea
commit
edecbc6e37
1 changed files with 5 additions and 1 deletions
|
@ -113,8 +113,12 @@ class DecompressActivity : SimpleActivity() {
|
|||
break
|
||||
}
|
||||
|
||||
if (!zipEntry.isDirectory && zipEntry.name.contains("/")) {
|
||||
continue
|
||||
}
|
||||
|
||||
val lastModified = if (isOreoPlus()) zipEntry.lastModifiedTime.toMillis() else 0
|
||||
val listItem = ListItem(zipEntry.name, zipEntry.name, zipEntry.isDirectory, 0, 0L, lastModified, false)
|
||||
val listItem = ListItem(zipEntry.name.removeSuffix("/"), zipEntry.name.removeSuffix("/"), zipEntry.isDirectory, 0, 0L, lastModified, false)
|
||||
listItems.add(listItem)
|
||||
}
|
||||
return listItems
|
||||
|
|
Loading…
Reference in a new issue