diff --git a/app/build.gradle b/app/build.gradle index d20046f3..6eb98b50 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -57,7 +57,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:5.28.1' + implementation 'com.simplemobiletools:commons:5.28.2' implementation 'joda-time:joda-time:2.10.1' implementation 'com.googlecode.ez-vcard:ez-vcard:0.10.5' implementation 'com.github.tibbi:IndicatorFastScroll:08f512858a' diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt index 56eedce1..c17708ec 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/ViewContactActivity.kt @@ -338,6 +338,12 @@ class ViewContactActivity : ContactActivity() { contact_numbers_image.beGone() contact_numbers_holder.beGone() } + + // make sure the Call and SMS buttons are visible if any phone number is shown + if (phoneNumbers.isNotEmpty()) { + contact_send_sms.beVisible() + contact_start_call.beVisible() + } } // a contact cannot have different emails per contact source. Such contacts are handled as separate ones, not duplicates of each other