From 24051b422131e364c34ccd33b0e1cb64ced9d580 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Wed, 13 Nov 2013 17:09:44 +0100 Subject: [PATCH 1/2] Fix in-call glitch where enabling/disabling the details view would show a bad cell size for a moment. --- Classes/LinphoneUI/UICallCell.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneUI/UICallCell.m b/Classes/LinphoneUI/UICallCell.m index 4fe64cdc2..b82299250 100644 --- a/Classes/LinphoneUI/UICallCell.m +++ b/Classes/LinphoneUI/UICallCell.m @@ -272,11 +272,13 @@ #pragma mark - Static Functions + (int)getMaximizedHeight { - return 280; + int height = [LinphoneManager runningOnIpad] ? 300 : 280; + return height; } + (int)getMinimizedHeight { - return 54; + int height = [LinphoneManager runningOnIpad] ? 63 : 54; + return height; } + (void)adaptSize:(UILabel*)label field:(UIView*)field { From 8752783d29ba825b4b50342f1f8bfe599223a927 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Wed, 13 Nov 2013 17:15:53 +0100 Subject: [PATCH 2/2] Better duration computation code --- Classes/LinphoneUI/UICallCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/UICallCell.m b/Classes/LinphoneUI/UICallCell.m index b82299250..5bb82643a 100644 --- a/Classes/LinphoneUI/UICallCell.m +++ b/Classes/LinphoneUI/UICallCell.m @@ -407,7 +407,7 @@ } int duration = linphone_call_get_duration(call); - [stateLabel setText:[NSString stringWithFormat:@"%02i:%02i", (duration/60), duration - 60 * (duration / 60), nil]]; + [stateLabel setText:[NSString stringWithFormat:@"%02i:%02i", (duration/60), (duration%60), nil]]; if(!data->minimize) { CGRect frame = [self frame];