show the callers number at the call screen below name

This commit is contained in:
tibbi
2020-05-31 10:42:09 +02:00
parent ece538e9c2
commit e497df7a65
2 changed files with 18 additions and 1 deletions

View File

@ -190,6 +190,11 @@ class CallActivity : SimpleActivity() {
}
caller_name_label.text = if (callContact!!.name.isNotEmpty()) callContact!!.name else getString(R.string.unknown_caller)
if (callContact!!.number.isNotEmpty() && callContact!!.number != callContact!!.name) {
caller_number_label.text = callContact!!.number
} else {
caller_number_label.beGone()
}
if (callContactAvatar != null) {
caller_avatar.setImageBitmap(callContactAvatar)