mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
show the specific phone number type in Recents, if a contact has multiple
This commit is contained in:
@ -246,6 +246,15 @@ class RecentCallsAdapter(
|
||||
view.apply {
|
||||
item_recents_frame.isSelected = selectedKeys.contains(call.id)
|
||||
var nameToShow = SpannableString(call.name)
|
||||
if (call.specificType.isNotEmpty()) {
|
||||
nameToShow = SpannableString("${call.name} - ${call.specificType}")
|
||||
|
||||
// show specific number at "Show call details" dialog too
|
||||
if (refreshItemsListener == null) {
|
||||
nameToShow = SpannableString("${call.name} - ${call.specificType}, ${call.specificNumber}")
|
||||
}
|
||||
}
|
||||
|
||||
if (call.neighbourIDs.isNotEmpty()) {
|
||||
nameToShow = SpannableString("$nameToShow (${call.neighbourIDs.size + 1})")
|
||||
}
|
||||
|
Reference in New Issue
Block a user