fix for read contact permission and custom listener
This commit is contained in:
parent
482484e27d
commit
3200ca5e92
1 changed files with 5 additions and 3 deletions
|
@ -1144,10 +1144,12 @@ public class LinphoneManager implements LinphoneCoreListener {
|
|||
notificationText = url;
|
||||
}
|
||||
|
||||
try {
|
||||
LinphoneUtils.findUriPictureOfContactAndSetDisplayName(from, mServiceContext.getContentResolver());
|
||||
LinphoneService.instance().displayMessageNotification(from.asStringUriOnly(), from.getDisplayName(), notificationText);
|
||||
//LinphoneService.instance().displayMessageNotification(from.asStringUriOnly(), from.getDisplayName(), notificationText);
|
||||
} catch (Exception e) { }
|
||||
|
||||
for (LinphoneSimpleListener listener : getSimpleListeners(LinphoneActivity.class)) {
|
||||
for (LinphoneSimpleListener listener : getSimpleListeners(LinphoneOnMessageReceivedListener.class)) {
|
||||
((LinphoneOnMessageReceivedListener) listener).onMessageReceived(from, message, id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue