From 33c1ddd7618b68d94d1197f00e9d48cc9d532a63 Mon Sep 17 00:00:00 2001 From: Doozy Date: Thu, 19 May 2022 11:26:09 +0300 Subject: [PATCH] Changes for readability --- .../simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt | 3 ++- .../com/simplemobiletools/gallery/pro/adapters/MediaAdapter.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt index b865104ae..1cf702833 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/adapters/DirectoryAdapter.kt @@ -607,7 +607,8 @@ class DirectoryAdapter( fileDirItems.add(fileDirItem) } 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 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 f71192bda..754064e29 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 @@ -475,7 +475,8 @@ class MediaAdapter( fileDirItems.add(fileDirItem) } 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)