From 87b4bdc6b3c7799154db6f9a5427b9f36ee9d5b9 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 15 Jun 2022 12:02:39 +0200 Subject: [PATCH] updating commons --- app/build.gradle | 2 +- .../gallery/pro/adapters/MediaAdapter.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 8ac7f3e68..4d1b67072 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -78,7 +78,7 @@ android { } dependencies { - implementation 'com.github.SimpleMobileTools:Simple-Commons:faa6a972c2' + implementation 'com.github.SimpleMobileTools:Simple-Commons:4b3acbca86' implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0' implementation 'it.sephiroth.android.exif:library:1.0.1' implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.24' 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 754064e29..d51aeee05 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,12 +471,12 @@ class MediaAdapter( val paths = getSelectedPaths() val fileDirItems = ArrayList(paths.size) paths.forEach { - val fileDirItem = File(it).toFileDirItem(activity) - fileDirItems.add(fileDirItem) + val curFileDirItem = File(it).toFileDirItem(activity) + fileDirItems.add(curFileDirItem) } - val size = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize() + val fileSize = fileDirItems.sumByLong { it.getProperSize(activity, countHidden = true) }.formatSize() val deleteItemsString = resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt) - "$deleteItemsString ($size)" + "$deleteItemsString ($fileSize)" } val isRecycleBin = firstPath.startsWith(activity.recycleBinPath)