From 6080191e1a78f819310f507b606a6b96bdb81f30 Mon Sep 17 00:00:00 2001 From: Doozy Date: Thu, 19 May 2022 10:58:37 +0300 Subject: [PATCH] Changed back to File extension --- .../simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt | 2 +- .../com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt index 319c2008d..b865104ae 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt @@ -603,7 +603,7 @@ class DirectoryAdapter( val paths = getSelectedPaths() val fileDirItems = ArrayList(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() diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt index 7d4ca81ca..f71192bda 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt @@ -471,7 +471,7 @@ class MediaAdapter( val paths = getSelectedPaths() val fileDirItems = ArrayList(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()