mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show a toast message when trying to call someone without phone number
This commit is contained in:
@ -163,7 +163,12 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
|
||||
if (currAdapter == null) {
|
||||
ContactsAdapter(this, contacts, this, contacts_list) {
|
||||
if (config.callContact) {
|
||||
tryStartCall(it as Contact)
|
||||
val contact = it as Contact
|
||||
if (contact.phoneNumbers.isNotEmpty()) {
|
||||
tryStartCall(it)
|
||||
} else {
|
||||
toast(R.string.no_phone_number_found)
|
||||
}
|
||||
} else {
|
||||
openContact(it as Contact)
|
||||
}
|
||||
|
Reference in New Issue
Block a user