updating commons
This commit is contained in:
parent
4b7c86f000
commit
87b4bdc6b3
2 changed files with 5 additions and 5 deletions
|
@ -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'
|
||||
|
|
|
@ -471,12 +471,12 @@ class MediaAdapter(
|
|||
val paths = getSelectedPaths()
|
||||
val fileDirItems = ArrayList<FileDirItem>(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)
|
||||
|
|
Loading…
Reference in a new issue