mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-30 10:19:27 +00:00
Fixed default proxy config removal causing Not Connected state if there are more than 1 proxy config
This commit is contained in:
parent
153cbb0c95
commit
9ec717776d
1 changed files with 9 additions and 0 deletions
|
|
@ -548,6 +548,15 @@ public class AccountSettingsFragment extends Fragment {
|
|||
core.removeAuthInfo(mAuthInfo);
|
||||
}
|
||||
}
|
||||
|
||||
// Set a new default proxy config if the current one has been removed
|
||||
if (core != null && core.getDefaultProxyConfig() == null) {
|
||||
ProxyConfig[] proxyConfigs = core.getProxyConfigList();
|
||||
if (proxyConfigs.length > 0) {
|
||||
core.setDefaultProxyConfig(proxyConfigs[0]);
|
||||
}
|
||||
}
|
||||
|
||||
LinphoneActivity.instance().displaySettings();
|
||||
LinphoneActivity.instance().refreshAccounts();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue