fix for read contact permission and custom listener

This commit is contained in:
Sylvain Berfini 2013-07-17 14:44:42 +02:00
parent 482484e27d
commit 3200ca5e92

View file

@ -1144,10 +1144,12 @@ public class LinphoneManager implements LinphoneCoreListener {
notificationText = url; notificationText = url;
} }
try {
LinphoneUtils.findUriPictureOfContactAndSetDisplayName(from, mServiceContext.getContentResolver()); 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); ((LinphoneOnMessageReceivedListener) listener).onMessageReceived(from, message, id);
} }
} }