From 14c5c21180d4131b2e05a9a8cbab6f48a8fa0ef1 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 1 Mar 2019 14:02:43 -0500 Subject: [PATCH] Fix size of "empty home view" image. --- Signal/src/ViewControllers/HomeView/HomeViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewController.m b/Signal/src/ViewControllers/HomeView/HomeViewController.m index 96125433d..e57947ac7 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewController.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewController.m @@ -378,7 +378,10 @@ typedef NS_ENUM(NSInteger, HomeViewControllerSection) { emptyInboxImageView.layer.minificationFilter = kCAFilterTrilinear; emptyInboxImageView.layer.magnificationFilter = kCAFilterTrilinear; [emptyInboxImageView autoPinToAspectRatioWithSize:emptyInboxImageView.image.size]; - + CGSize screenSize = UIScreen.mainScreen.bounds.size; + CGFloat emptyInboxImageSize = MIN(screenSize.width, screenSize.height) * 0.65f; + [emptyInboxImageView autoSetDimension:ALDimensionWidth toSize:emptyInboxImageSize]; + UILabel *emptyInboxLabel = [UILabel new]; emptyInboxLabel.text = NSLocalizedString(@"INBOX_VIEW_EMPTY_INBOX", @"Message shown in the home view when the inbox is empty.");