Change UIAlertController condiiton to display Debug popup in DialerView

This commit is contained in:
benoit.martins 2023-05-05 13:51:36 +02:00 committed by Benoit Martins
parent 4153f04e62
commit 30a916b514

View file

@ -285,7 +285,7 @@ static UICompositeViewDescription *compositeDescription = nil;
- (BOOL)displayDebugPopup:(NSString *)address {
LinphoneManager *mgr = LinphoneManager.instance;
NSString *debugAddress = [mgr lpConfigStringForKey:@"debug_popup_magic" withDefault:@""];
if (TRUE) {
if ((![debugAddress isEqualToString:@""] && [address isEqualToString:debugAddress]) || [_addressField.text isEqual: @"#1234#"]) {
UIAlertController *errView = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"Debug", nil)
message:NSLocalizedString(@"Choose an action", nil)
preferredStyle:UIAlertControllerStyleAlert];