Fix visual glitch in Call when toggling the details view.

+ better elapsed time computing
This commit is contained in:
Guillaume BIENKOWSKI 2013-11-14 13:01:22 +01:00
parent ca097a54cf
commit a050e61287

View file

@ -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];