mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-28 22:26:21 +00:00
assistant: display error if network not available
This commit is contained in:
parent
935ea57107
commit
f798da2db0
1 changed files with 14 additions and 0 deletions
|
|
@ -202,6 +202,20 @@ static UICompositeViewDescription *compositeDescription = nil;
|
||||||
- (void)configureProxyConfig {
|
- (void)configureProxyConfig {
|
||||||
LinphoneManager *lm = LinphoneManager.instance;
|
LinphoneManager *lm = LinphoneManager.instance;
|
||||||
|
|
||||||
|
if (!linphone_core_is_network_reachable(LC)) {
|
||||||
|
UIAlertView *error =
|
||||||
|
[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Network Error", nil)
|
||||||
|
message:NSLocalizedString(@"There is no network connection available, enable "
|
||||||
|
@"WIFI or WWAN prior to configure an account",
|
||||||
|
nil)
|
||||||
|
delegate:nil
|
||||||
|
cancelButtonTitle:NSLocalizedString(@"Cancel", nil)
|
||||||
|
otherButtonTitles:nil];
|
||||||
|
[error show];
|
||||||
|
_waitView.hidden = YES;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// remove previous proxy config, if any
|
// remove previous proxy config, if any
|
||||||
if (new_config != NULL) {
|
if (new_config != NULL) {
|
||||||
const LinphoneAuthInfo *auth = linphone_proxy_config_find_auth_info(new_config);
|
const LinphoneAuthInfo *auth = linphone_proxy_config_find_auth_info(new_config);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue