mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-06-05 21:59:27 +02:00
show the caller as Unknown caller in case we know nothing about him
This commit is contained in:
@ -85,7 +85,7 @@ class CallActivity : SimpleActivity() {
|
||||
|
||||
private fun updateOtherPersonsInfo() {
|
||||
val callContact = CallManager.getCallContact(applicationContext) ?: return
|
||||
caller_name_label.text = callContact.name
|
||||
caller_name_label.text = if (callContact.name.isNotEmpty()) callContact.name else getString(R.string.unknown_caller)
|
||||
caller_number_label.text = callContact.number
|
||||
caller_number_label.beVisibleIf(callContact.number.isNotEmpty())
|
||||
|
||||
|
Reference in New Issue
Block a user