show the caller as Unknown caller in case we know nothing about him
This commit is contained in:
parent
e5f3da5434
commit
0b82f4aded
|
@ -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())
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue