mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Use destructiveButtonIndex value instead of hard-coded 0 index
This commit is contained in:
parent
e8e06f8704
commit
202a22314c
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@
|
|||
|
||||
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex withUserDatas:(void *)datas{
|
||||
LinphoneCall* call = (LinphoneCall*)datas;
|
||||
if (buttonIndex == 0 ) {
|
||||
if (buttonIndex == actionSheet.destructiveButtonIndex ) {
|
||||
linphone_core_accept_call([LinphoneManager getLc],call);
|
||||
} else {
|
||||
linphone_core_terminate_call ([LinphoneManager getLc], call);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue