mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
Changed back to File extension
This commit is contained in:
parent
914d97c231
commit
6080191e1a
2 changed files with 2 additions and 2 deletions
|
@ -603,7 +603,7 @@ class DirectoryAdapter(
|
|||
val paths = getSelectedPaths()
|
||||
val fileDirItems = ArrayList<FileDirItem>(paths.size)
|
||||
paths.forEach {
|
||||
val fileDirItem = FileDirItem(it, it.getFilenameFromPath(), activity.getIsPathDirectory(it))
|
||||
val fileDirItem = File(it).toFileDirItem(activity)
|
||||
fileDirItems.add(fileDirItem)
|
||||
}
|
||||
val size = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize()
|
||||
|
|
|
@ -471,7 +471,7 @@ class MediaAdapter(
|
|||
val paths = getSelectedPaths()
|
||||
val fileDirItems = ArrayList<FileDirItem>(paths.size)
|
||||
paths.forEach {
|
||||
val fileDirItem = FileDirItem(it, it.getFilenameFromPath(), activity.getIsPathDirectory(it))
|
||||
val fileDirItem = File(it).toFileDirItem(activity)
|
||||
fileDirItems.add(fileDirItem)
|
||||
}
|
||||
val size = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize()
|
||||
|
|
Loading…
Reference in a new issue