mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed deadlock causing ANR because SDK method was called directly in adapter
This commit is contained in:
parent
31b9836cc0
commit
d4b0356bda
2 changed files with 3 additions and 1 deletions
|
|
@ -90,7 +90,7 @@ class ConversationsContactsAndSuggestionsListAdapter :
|
|||
return if (model.localAddress != null) {
|
||||
CONVERSATION_TYPE
|
||||
} else if (model.friend != null) {
|
||||
if (model.friend.starred) {
|
||||
if (model.starred) {
|
||||
FAVORITE_TYPE
|
||||
} else {
|
||||
CONTACT_TYPE
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ class ConversationContactOrSuggestionModel
|
|||
) {
|
||||
val id = friend?.refKey ?: address.asStringUriOnly().hashCode()
|
||||
|
||||
val starred = friend?.starred == true
|
||||
|
||||
val name = conversationSubject
|
||||
?: if (friend != null) {
|
||||
friend.name ?: LinphoneUtils.getDisplayName(address)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue