diff --git a/res/layout/chat_bubble_incoming.xml b/res/layout/chat_bubble_incoming.xml index acfe99f1d..623341090 100644 --- a/res/layout/chat_bubble_incoming.xml +++ b/res/layout/chat_bubble_incoming.xml @@ -7,6 +7,7 @@ android:orientation="horizontal" > diff --git a/res/layout/contact_cell.xml b/res/layout/contact_cell.xml index 8c7f3f2bb..46b9ad902 100644 --- a/res/layout/contact_cell.xml +++ b/res/layout/contact_cell.xml @@ -38,7 +38,7 @@ android:layout_height="wrap_content" android:layout_toRightOf="@id/avatar_with_presence" android:layout_centerVertical="true" - android:layout_toLeftOf="@id/delete" + android:layout_toLeftOf="@id/delete_message" android:layout_marginLeft="15dp" /> 0) { diff --git a/src/org/linphone/LinphoneManager.java b/src/org/linphone/LinphoneManager.java index 71bb7cde6..c318842bb 100644 --- a/src/org/linphone/LinphoneManager.java +++ b/src/org/linphone/LinphoneManager.java @@ -353,7 +353,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag public void enableProxyPublish( boolean enabled) { LinphoneCore lc = getLcIfManagerNotDestroyedOrNull(); - if(lc != null ) { + if(lc != null ) { LinphoneProxyConfig[] proxyList = lc.getProxyConfigList(); if(!enabled) changeStatusToOffline(); @@ -362,21 +362,21 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag proxyConfig.enablePublish(enabled); proxyConfig.done(); } + subscribeFriendList(enabled); if(enabled) changeStatusToOnline(); } } - //TODO to Complete - public void subscribeFriendList(boolean enabled){ + public void subscribeFriendList(boolean enabled){ LinphoneCore lc = getLcIfManagerNotDestroyedOrNull(); if(lc != null ) { - /* if (enabled) { - lc.linphone_friend_list_update_subscriptions(linphone_core_get_default_friend_list(LC), NULL, TRUE); + LinphoneFriendList mFriendList = (lc.getFriendLists())[0]; + if (enabled) { + //mFriendList.updateSubscriptions(lc.getDefaultProxyConfig(), true); } else { - linphone_friend_list_close_subscriptions(linphone_core_get_default_friend_list(LC)); + mFriendList.closeSubscriptions(); } - */ } } @@ -879,7 +879,7 @@ public class LinphoneManager implements LinphoneCoreListener, LinphoneChatMessag public void notifyPresenceReceived(LinphoneCore lc, LinphoneFriend lf) { for(AvatarWithPresenceImage listener : listeners){ if(listener.isThisFriend(lf)){ - Log.e("===>> LinphoneManager : notifyPresenceReceived : "+lf.getName().toString()+" - "+lf.getPresenceModel().getActivity().getType()); + //Log.e("===>> LinphoneManager : notifyPresenceReceived : "+lf.getName().toString()+" - "+lf.getPresenceModel().getActivity().getType()); listener.updatePresenceIcon(lc, lf); } } diff --git a/submodules/linphone b/submodules/linphone index 6a02a5701..9efcd5f61 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit 6a02a570180eaedf0377317758481ec82cbc791f +Subproject commit 9efcd5f61079571ddd220d97f10bc4543b99f09e