From a050e61287892c94a5e4924a18628b13f32ef7a4 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Thu, 14 Nov 2013 13:01:22 +0100 Subject: [PATCH] Fix visual glitch in Call when toggling the details view. + better elapsed time computing --- Classes/LinphoneUI/UICallCell.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Classes/LinphoneUI/UICallCell.m b/Classes/LinphoneUI/UICallCell.m index 4fe64cdc2..5bb82643a 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 { @@ -405,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];