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() {
|
||||
addresses = new ArrayList<LinphoneNumberOrAddress>();
|
||||
if (isAndroidContact()) {
|
||||
getContactNames();
|
||||
getNativeContactOrganization();
|
||||
getAndroidIds();
|
||||
hasSipAddress = false;
|
||||
addresses = new ArrayList<LinphoneNumberOrAddress>();
|
||||
for (LinphoneNumberOrAddress noa : getAddressesAndNumbersForAndroidContact()) {
|
||||
addNumberOrAddress(noa);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue