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)