mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
Changes for readability
This commit is contained in:
parent
6080191e1a
commit
33c1ddd761
2 changed files with 4 additions and 2 deletions
|
@ -607,7 +607,8 @@ class DirectoryAdapter(
|
||||||
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()
|
||||||
"${resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt)} ($size)"
|
val deleteItemsString = resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt)
|
||||||
|
"$deleteItemsString ($size)"
|
||||||
}
|
}
|
||||||
|
|
||||||
val fileDirItem = getFirstSelectedItem() ?: return
|
val fileDirItem = getFirstSelectedItem() ?: return
|
||||||
|
|
|
@ -475,7 +475,8 @@ class MediaAdapter(
|
||||||
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()
|
||||||
"${resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt)} ($size)"
|
val deleteItemsString = resources.getQuantityString(R.plurals.delete_items, itemsCnt, itemsCnt)
|
||||||
|
"$deleteItemsString ($size)"
|
||||||
}
|
}
|
||||||
|
|
||||||
val isRecycleBin = firstPath.startsWith(activity.recycleBinPath)
|
val isRecycleBin = firstPath.startsWith(activity.recycleBinPath)
|
||||||
|
|
Loading…
Reference in a new issue