Changes for readability

This commit is contained in:
Doozy 2022-05-19 11:26:09 +03:00
parent 6080191e1a
commit 33c1ddd761
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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)