LinphoneManager: do not display auth popup twice

This commit is contained in:
Gautier Pelloux-Prayer 2015-10-06 14:35:24 +02:00
parent 3287ffd209
commit 1e764a04af
2 changed files with 9 additions and 2 deletions

View file

@ -892,7 +892,14 @@ static void linphone_iphone_popup_password_request(LinphoneCore *lc, const char
const char *domain) {
// let the wizard handle its own errors
if ([PhoneMainView.instance currentView] != WizardViewController.compositeViewDescription) {
DTAlertView *alertView = [[DTAlertView alloc]
static DTAlertView *alertView = nil;
// avoid having multiple popups
if ([alertView isVisible]) {
[alertView dismissWithClickedButtonIndex:0 animated:NO];
}
alertView = [[DTAlertView alloc]
initWithTitle:NSLocalizedString(@"Authentication needed.", nil)
message:[NSString stringWithFormat:NSLocalizedString(@"Registration failed because authentication is "
@"missing or invalid for %s@%s.\nYou can "

@ -1 +1 @@
Subproject commit ee187d4cb5de19ae044ab72fe6a2438b0693dc25
Subproject commit 6bae96a3bffd89ea9ece0d7aa550589214b7d319