Updated liblinphone + do not use createLinphoneFriend from LinphoneCoreFactory

This commit is contained in:
Sylvain Berfini 2017-01-18 10:37:26 +01:00
parent 6f3059444f
commit d04bcdb9f6
3 changed files with 3 additions and 3 deletions

View file

@ -84,7 +84,7 @@ public class WrapperTester extends AndroidTestCase {
//Test LinphoneFriend ref key //Test LinphoneFriend ref key
String key = "12"; 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); friend.setRefKey(key);
Assert.assertEquals(friend.getRefKey(),key); Assert.assertEquals(friend.getRefKey(),key);

View file

@ -88,7 +88,7 @@ public class TutorialCardDavSync extends Activity implements OnClickListener, Li
lfl = lc.createLinphoneFriendList(); lfl = lc.createLinphoneFriendList();
lc.addFriendList(lfl); 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"); 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 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) { } catch (LinphoneCoreException e) {

@ -1 +1 @@
Subproject commit c5bce292df15812c68cc2c0487b836e28d76250c Subproject commit c23ac67e0e989fcc0e483d4b046f913a41dc0027