diff --git a/liblinphone_tester/src/org/linphone/tester/WrapperTester.java b/liblinphone_tester/src/org/linphone/tester/WrapperTester.java index 20ef7e782..cdd21365a 100644 --- a/liblinphone_tester/src/org/linphone/tester/WrapperTester.java +++ b/liblinphone_tester/src/org/linphone/tester/WrapperTester.java @@ -84,7 +84,7 @@ public class WrapperTester extends AndroidTestCase { //Test LinphoneFriend ref key String key = "12"; - LinphoneFriend friend = LinphoneCoreFactory.instance().createLinphoneFriend("sip:lala@test.linphone.org"); + LinphoneFriend friend = mCore.createFriendWithAddress("sip:lala@test.linphone.org"); friend.setRefKey(key); Assert.assertEquals(friend.getRefKey(),key); diff --git a/src/org/linphone/tutorials/TutorialCardDavSync.java b/src/org/linphone/tutorials/TutorialCardDavSync.java index 27e6e0742..9959ff594 100644 --- a/src/org/linphone/tutorials/TutorialCardDavSync.java +++ b/src/org/linphone/tutorials/TutorialCardDavSync.java @@ -88,7 +88,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li lfl = lc.createLinphoneFriendList(); lc.addFriendList(lfl); - LinphoneFriend lf = LinphoneCoreFactory.instance().createLinphoneFriend("sip:ghislain@sip.linphone.org"); + LinphoneFriend lf = lc.createFriendWithAddress("sip:ghislain@sip.linphone.org"); lf.setName("Ghislain"); lfl.addLocalFriend(lf); // This is a local friend, it won't be sent to the CardDAV server and will be removed at the next synchronization } catch (LinphoneCoreException e) { diff --git a/submodules/linphone b/submodules/linphone index c5bce292d..c23ac67e0 160000 --- a/submodules/linphone +++ b/submodules/linphone @@ -1 +1 @@ -Subproject commit c5bce292df15812c68cc2c0487b836e28d76250c +Subproject commit c23ac67e0e989fcc0e483d4b046f913a41dc0027