Fix adding infinitely address for no android contact
This commit is contained in:
parent
3fe5f7c3cd
commit
5d518f0642
1 changed files with 8 additions and 8 deletions
|
@ -502,12 +502,12 @@ public class LinphoneContact implements Serializable, Comparable<LinphoneContact
|
||||||
}
|
}
|
||||||
|
|
||||||
public void refresh() {
|
public void refresh() {
|
||||||
|
addresses = new ArrayList<LinphoneNumberOrAddress>();
|
||||||
if (isAndroidContact()) {
|
if (isAndroidContact()) {
|
||||||
getContactNames();
|
getContactNames();
|
||||||
getNativeContactOrganization();
|
getNativeContactOrganization();
|
||||||
getAndroidIds();
|
getAndroidIds();
|
||||||
hasSipAddress = false;
|
hasSipAddress = false;
|
||||||
addresses = new ArrayList<LinphoneNumberOrAddress>();
|
|
||||||
for (LinphoneNumberOrAddress noa : getAddressesAndNumbersForAndroidContact()) {
|
for (LinphoneNumberOrAddress noa : getAddressesAndNumbersForAndroidContact()) {
|
||||||
addNumberOrAddress(noa);
|
addNumberOrAddress(noa);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue