Fix linphonePReferences
This commit is contained in:
parent
7f3091fa16
commit
efa9921136
1 changed files with 2 additions and 2 deletions
|
@ -334,7 +334,7 @@ public class LinphonePreferences {
|
||||||
|
|
||||||
public boolean isAccountDeleted(int n){
|
public boolean isAccountDeleted(int n){
|
||||||
LinphoneProxyConfig proxyConfig = getProxyConfig(n);
|
LinphoneProxyConfig proxyConfig = getProxyConfig(n);
|
||||||
return proxyConfig.getIsDeleted();
|
return proxyConfig.getUserData() != null ? (Boolean) proxyConfig.getUserData() : false ;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAccountTransport(int n, String transport) {
|
public void setAccountTransport(int n, String transport) {
|
||||||
|
@ -699,7 +699,7 @@ public class LinphonePreferences {
|
||||||
proxyCfg.enableRegister(false);
|
proxyCfg.enableRegister(false);
|
||||||
proxyCfg.done();
|
proxyCfg.done();
|
||||||
|
|
||||||
proxyCfg.setIsDeleted(true);
|
proxyCfg.setUserData(true);
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue