Fix adding infinitely address for no android contact

This commit is contained in:
Erwan Croze 2017-02-15 15:18:50 +01:00
parent 3fe5f7c3cd
commit 5d518f0642

View file

@ -502,12 +502,12 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
}
public void refresh() {
addresses = new ArrayList<LinphoneNumberOrAddress>();
if (isAndroidContact()) {
getContactNames();
getNativeContactOrganization();
getAndroidIds();
hasSipAddress = false;
addresses = new ArrayList<LinphoneNumberOrAddress>();
for (LinphoneNumberOrAddress noa : getAddressesAndNumbersForAndroidContact()) {
addNumberOrAddress(noa);
}