Fix size of "empty home view" image.

pull/2/head
Matthew Chen 6 years ago
parent 7912c338ab
commit 14c5c21180

@ -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.");

Loading…
Cancel
Save