mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed notification not showing contact name if available
This commit is contained in:
parent
fe880d7774
commit
39c968be8b
1 changed files with 4 additions and 1 deletions
|
|
@ -616,7 +616,10 @@ public class NotificationsManager {
|
|||
LinphoneContact contact = ContactsManager.getInstance().findContactFromAddress(address);
|
||||
Uri pictureUri = contact != null ? contact.getThumbnailUri() : null;
|
||||
Bitmap bm = ImageUtils.getRoundBitmapFromUri(mContext, pictureUri);
|
||||
String name = LinphoneUtils.getAddressDisplayName(address);
|
||||
String name =
|
||||
contact != null
|
||||
? contact.getFullName()
|
||||
: LinphoneUtils.getAddressDisplayName(address);
|
||||
boolean isIncoming = callNotifIntentClass == CallIncomingActivity.class;
|
||||
|
||||
Notification notification;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue