From 202a22314cef98ceee844f5c4547f33304e6065f Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Thu, 1 Dec 2011 16:05:11 +0100 Subject: [PATCH] Use destructiveButtonIndex value instead of hard-coded 0 index --- Classes/PhoneViewController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/PhoneViewController.m b/Classes/PhoneViewController.m index 1e06fbf61..9c5d6d0a6 100644 --- a/Classes/PhoneViewController.m +++ b/Classes/PhoneViewController.m @@ -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);