From 531dcf691bcafc2e5dd7633c8b871df1a8d2942c Mon Sep 17 00:00:00 2001 From: Benjamin Verdier Date: Tue, 12 Jun 2018 14:46:07 +0200 Subject: [PATCH] Fix landscape bug when closing fullscreen view of image --- Classes/LinphoneUI/UIChatBubbleTextCell.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/LinphoneUI/UIChatBubbleTextCell.m b/Classes/LinphoneUI/UIChatBubbleTextCell.m index 3f42a8ebc..235c1f0a9 100644 --- a/Classes/LinphoneUI/UIChatBubbleTextCell.m +++ b/Classes/LinphoneUI/UIChatBubbleTextCell.m @@ -393,7 +393,7 @@ static const CGFloat CELL_MESSAGE_Y_MARGIN = 52; // 44; + (CGSize)getMediaMessageSizefromOriginalSize:(CGSize)originalSize withWidth:(int)width { CGSize mediaSize = CGSizeMake(0, 0); int availableWidth = width - CELL_MESSAGE_X_MARGIN; - if (UIDeviceOrientationIsLandscape([[UIDevice currentDevice] orientation])) { + if (UIInterfaceOrientationIsLandscape([[UIApplication sharedApplication] statusBarOrientation])) { availableWidth = availableWidth /3; } int height = originalSize.height;