mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
LinphoneManager: do not display auth popup twice
This commit is contained in:
parent
3287ffd209
commit
1e764a04af
2 changed files with 9 additions and 2 deletions
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue