mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Fix ZRTP popup glitch
This commit is contained in:
parent
b2cb1ab69d
commit
2aaf67dfe2
2 changed files with 8 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
|||
#import "TPMultiLayoutViewController.h"
|
||||
#import "DTActionSheet.h"
|
||||
|
||||
@interface UIStateBar : TPMultiLayoutViewController {
|
||||
@interface UIStateBar : TPMultiLayoutViewController<UIActionSheetDelegate> {
|
||||
DTActionSheet *securitySheet;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -266,14 +266,15 @@ NSTimer *callSecurityTimer;
|
|||
message = [NSString stringWithFormat:NSLocalizedString(@"Confirm the following SAS with the peer:\n%s",nil),
|
||||
linphone_call_get_authentication_token(call)];
|
||||
}
|
||||
if(securitySheet == nil) {
|
||||
if( securitySheet == nil ){
|
||||
securitySheet = [[DTActionSheet alloc] initWithTitle:message];
|
||||
[securitySheet setDelegate:self];
|
||||
[securitySheet addButtonWithTitle:NSLocalizedString(@"Ok",nil) block:^(){
|
||||
linphone_call_set_authentication_token_verified(call, !valid);
|
||||
[securitySheet release];
|
||||
securitySheet = nil;
|
||||
}];
|
||||
|
||||
|
||||
[securitySheet addDestructiveButtonWithTitle:NSLocalizedString(@"Cancel",nil) block:^(){
|
||||
[securitySheet release];
|
||||
securitySheet = nil;
|
||||
|
|
@ -285,6 +286,10 @@ NSTimer *callSecurityTimer;
|
|||
}
|
||||
}
|
||||
|
||||
-(void)actionSheet:(UIActionSheet *)actionSheet didDismissWithButtonIndex:(NSInteger)buttonIndex{
|
||||
[securitySheet release];
|
||||
securitySheet = nil;
|
||||
}
|
||||
|
||||
#pragma mark - TPMultiLayoutViewController Functions
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue