mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-25 23:57:52 +01:00
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() {
|
private fun updateOtherPersonsInfo() {
|
||||||
val callContact = CallManager.getCallContact(applicationContext) ?: return
|
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.text = callContact.number
|
||||||
caller_number_label.beVisibleIf(callContact.number.isNotEmpty())
|
caller_number_label.beVisibleIf(callContact.number.isNotEmpty())
|
||||||
|
|
||||||
|
@ -113,6 +113,7 @@
|
|||||||
|
|
||||||
<string name="accept">Accept</string>
|
<string name="accept">Accept</string>
|
||||||
<string name="decline">Decline</string>
|
<string name="decline">Decline</string>
|
||||||
|
<string name="unknown_caller">Unknown caller</string>
|
||||||
|
|
||||||
<!-- Speed dial -->
|
<!-- Speed dial -->
|
||||||
<string name="speed_dial">Speed dial</string>
|
<string name="speed_dial">Speed dial</string>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user