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…
Reference in a new issue