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