mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-30 01:39:20 +00:00
fix crash on simulator when setting display name
This commit is contained in:
parent
02a3833743
commit
bf88d70ea3
2 changed files with 6 additions and 2 deletions
|
|
@ -29,13 +29,17 @@ public class LinphoneAddressImpl implements LinphoneAddress {
|
|||
private native String getUserName(long ptr);
|
||||
private native String getDomain(long ptr);
|
||||
private native String toUri(long ptr);
|
||||
private native String setDisplayName(long ptr,String name);
|
||||
private native void setDisplayName(long ptr,String name);
|
||||
private native String toString(long ptr);
|
||||
|
||||
|
||||
protected LinphoneAddressImpl(String username,String domain,String displayName) {
|
||||
nativePtr = newLinphoneAddressImpl("sip:"+username+"@"+domain, displayName);
|
||||
}
|
||||
protected LinphoneAddressImpl(long aNativePtr,boolean javaOwnPtr) {
|
||||
nativePtr = aNativePtr;
|
||||
ownPtr=javaOwnPtr;
|
||||
}
|
||||
protected LinphoneAddressImpl(long aNativePtr) {
|
||||
nativePtr = aNativePtr;
|
||||
ownPtr=false;
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ class LinphoneCoreImpl implements LinphoneCore {
|
|||
public LinphoneAddress interpretUrl(String destination) throws LinphoneCoreException {
|
||||
long lAddress = interpretUrl(nativePtr,destination);
|
||||
if (lAddress != 0) {
|
||||
return new LinphoneAddressImpl(lAddress);
|
||||
return new LinphoneAddressImpl(lAddress,true);
|
||||
} else {
|
||||
throw new LinphoneCoreException("Cannot interpret ["+destination+"]");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue