From 7f382311eaa7f2c31f6f7f059eb573a2b0f962d9 Mon Sep 17 00:00:00 2001 From: Pavel Poley Date: Wed, 11 May 2022 14:27:14 +0300 Subject: [PATCH] replace (0) with not showing anything --- .../contacts/pro/adapters/FilterContactSourcesAdapter.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/FilterContactSourcesAdapter.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/FilterContactSourcesAdapter.kt index 868d83ef..f35f41e0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/FilterContactSourcesAdapter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/adapters/FilterContactSourcesAdapter.kt @@ -62,7 +62,8 @@ class FilterContactSourcesAdapter( itemView.apply { filter_contact_source_checkbox.isChecked = isSelected filter_contact_source_checkbox.setColors(activity.getProperTextColor(), activity.getProperPrimaryColor(), activity.getProperBackgroundColor()) - val displayName = "${contactSource.publicName} (${contactSource.count})" + val countText = if (contactSource.count > 0) "(${contactSource.count})" else "" + val displayName = "${contactSource.publicName} $countText" filter_contact_source_checkbox.text = displayName filter_contact_source_holder.setOnClickListener { viewClicked(!isSelected, contactSource) } }