From 9f12a3a6f198c05d406bc78005041ba1c1f56a86 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 8 Nov 2020 20:20:35 +0100 Subject: [PATCH] use proper folder name with all settings --- .../gallery/pro/adapters/DirectoryAdapter.kt | 16 ++++++++++++++-- 1 file changed, 14 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 08120ab54..c672f54ca 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 @@ -656,9 +656,7 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList 1) "${directory.name} (${directory.subfoldersCount})" else directory.name dir_path?.text = "${directory.path.substringBeforeLast("/")}/" - photo_cnt.text = directory.subfoldersMediaCount.toString() val thumbnailType = when { directory.tmb.isVideoFast() -> TYPE_VIDEOS directory.tmb.isGif() -> TYPE_GIFS @@ -688,8 +686,22 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList 1) { + nameCount += " [${directory.subfoldersCount}]" + } + } + + dir_name.text = nameCount + if (isListViewType) { dir_name.setTextColor(textColor) dir_path.setTextColor(textColor)