Changed back to File extension

This commit is contained in:
Doozy 2022-05-19 10:58:37 +03:00
parent 914d97c231
commit 6080191e1a
2 changed files with 2 additions and 2 deletions

View file

@ -603,7 +603,7 @@ class DirectoryAdapter(
val paths = getSelectedPaths() val paths = getSelectedPaths()
val fileDirItems = ArrayList<FileDirItem>(paths.size) val fileDirItems = ArrayList<FileDirItem>(paths.size)
paths.forEach { paths.forEach {
val fileDirItem = FileDirItem(it, it.getFilenameFromPath(), activity.getIsPathDirectory(it)) val fileDirItem = File(it).toFileDirItem(activity)
fileDirItems.add(fileDirItem) fileDirItems.add(fileDirItem)
} }
val size = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize() val size = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize()

View file

@ -471,7 +471,7 @@ class MediaAdapter(
val paths = getSelectedPaths() val paths = getSelectedPaths()
val fileDirItems = ArrayList<FileDirItem>(paths.size) val fileDirItems = ArrayList<FileDirItem>(paths.size)
paths.forEach { paths.forEach {
val fileDirItem = FileDirItem(it, it.getFilenameFromPath(), activity.getIsPathDirectory(it)) val fileDirItem = File(it).toFileDirItem(activity)
fileDirItems.add(fileDirItem) fileDirItems.add(fileDirItem)
} }
val size = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize() val size = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize()