Fix password changed in settings

This commit is contained in:
Margaux Clerc 2016-02-26 16:13:13 +01:00
parent 0302654fbd
commit 5b376b61f0

View file

@ -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);
} }
} }