show the caller as Unknown caller in case we know nothing about him

This commit is contained in:
tibbi 2020-05-01 11:14:15 +02:00
parent e5f3da5434
commit 0b82f4aded
2 changed files with 2 additions and 1 deletions

View File

@ -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())

View File

@ -113,6 +113,7 @@
<string name="accept">Accept</string>
<string name="decline">Decline</string>
<string name="unknown_caller">Unknown caller</string>
<!-- Speed dial -->
<string name="speed_dial">Speed dial</string>