Fix another crash in the settings

This commit is contained in:
Sylvain Berfini 2013-10-31 17:06:20 +01:00
parent 675a2ff05d
commit ae8f1328b7

View file

@ -369,12 +369,12 @@ public class LinphonePreferences {
}
public void deleteAccount(int n) {
LinphoneProxyConfig proxyCfg = getProxyConfig(n);
if (proxyCfg != null)
getLc().removeProxyConfig(proxyCfg);
LinphoneAuthInfo authInfo = getAuthInfo(n);
if (authInfo != null)
getLc().removeAuthInfo(authInfo);
LinphoneProxyConfig proxyCfg = getProxyConfig(n);
if (proxyCfg != null)
getLc().removeProxyConfig(proxyCfg);
}
// End of accounts settings