Fix password changed in settings
This commit is contained in:
parent
0302654fbd
commit
5b376b61f0
1 changed files with 3 additions and 4 deletions
|
@ -479,10 +479,9 @@ public class LinphonePreferences {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAccountPassword(int n, String password) {
|
public void setAccountPassword(int n, String password) {
|
||||||
LinphoneAuthInfo info = getClonedAuthInfo(n);
|
if(getAccountDomain(n) != null && getAccountUsername(n) != null) {
|
||||||
if(info != null) {
|
LinphoneAuthInfo authInfo = LinphoneCoreFactory.instance().createAuthInfo(getAccountUsername(n), null, password, null, null, getAccountDomain(n));
|
||||||
info.setPassword(password);
|
LinphoneManager.getLc().addAuthInfo(authInfo);
|
||||||
saveAuthInfo(info);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue