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) {
|
||||
LinphoneAuthInfo info = getClonedAuthInfo(n);
|
||||
if(info != null) {
|
||||
info.setPassword(password);
|
||||
saveAuthInfo(info);
|
||||
if(getAccountDomain(n) != null && getAccountUsername(n) != null) {
|
||||
LinphoneAuthInfo authInfo = LinphoneCoreFactory.instance().createAuthInfo(getAccountUsername(n), null, password, null, null, getAccountDomain(n));
|
||||
LinphoneManager.getLc().addAuthInfo(authInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue