Differentiate status message: 'no sip account' and 'network down' (on 1st start)

This commit is contained in:
Pierre-Eric Pelloux-Prayer 2012-04-19 14:56:31 +02:00
parent c2748f0c11
commit dd33f588c5
2 changed files with 2 additions and 3 deletions

View file

@ -72,6 +72,7 @@
- (void)viewDidLoad
{
[super viewDidLoad];
[phoneMainView.switchCamera addTarget:self action:@selector(switchCameraPressed) forControlEvents:UIControlEventTouchUpInside];
}
-(void) switchCameraPressed {
@ -140,8 +141,6 @@
-(void) viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
[phoneMainView.switchCamera addTarget:self action:@selector(switchCameraPressed) forControlEvents:UIControlEventTouchUpInside];
}
-(void) viewDidDisappear:(BOOL)animated {

View file

@ -77,7 +77,7 @@
if (config == NULL) {
s = LinphoneRegistrationNone;
m = @"No SIP account configured";
m = linphone_core_is_network_reachabled([LinphoneManager getLc]) ? NSLocalizedString(@"No SIP account configured", nil) : NSLocalizedString(@"Network down", nil);
} else {
s = linphone_proxy_config_get_state(config);