From 501466bcfbd48395563356e08a2c7da16943f029 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 27 Mar 2012 14:19:42 +0200 Subject: [PATCH] Auto resize address text to fit label's width --- Classes/IncallViewController.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Classes/IncallViewController.m b/Classes/IncallViewController.m index 926d84d5b..c1a03b788 100644 --- a/Classes/IncallViewController.m +++ b/Classes/IncallViewController.m @@ -404,8 +404,8 @@ void addAnimationFadeTransition(UIView* view, float duration) { pause.imageView.contentMode = UIViewContentModeCenter; contacts.imageView.contentMode = UIViewContentModeCenter; addCall.imageView.contentMode = UIViewContentModeCenter; - dialer.imageView.contentMode = UIViewContentModeCenter; - */ + dialer.imageView.contentMode = UIViewContentModeCenter;*/ + } -(void) addCallPressed { @@ -585,6 +585,7 @@ void addAnimationFadeTransition(UIView* view, float duration) { [self enableVideoDisplay]; [self updateUIFromLinphoneState: YES]; videoWaitingForFirstImage.hidden = NO; + [videoWaitingForFirstImage startAnimating]; return; if (mIncallViewIsReady) { @@ -747,6 +748,8 @@ void addAnimationFadeTransition(UIView* view, float duration) { } const LinphoneAddress* addr = linphone_call_get_remote_address(call); + label.adjustsFontSizeToFitWidth = YES; + if (addr) { const char* lUserNameChars=linphone_address_get_username(addr); NSString* lUserName = lUserNameChars?[[[NSString alloc] initWithUTF8String:lUserNameChars] autorelease]:NSLocalizedString(@"Unknown",nil);