Add white background to images in conversation view.

pull/1/head
Matthew Chen 7 years ago
parent 13fdfa2db3
commit ae91b03c71

@ -564,6 +564,7 @@ NS_ASSUME_NONNULL_BEGIN
// some performance cost. // some performance cost.
stillImageView.layer.minificationFilter = kCAFilterTrilinear; stillImageView.layer.minificationFilter = kCAFilterTrilinear;
stillImageView.layer.magnificationFilter = kCAFilterTrilinear; stillImageView.layer.magnificationFilter = kCAFilterTrilinear;
stillImageView.backgroundColor = [UIColor whiteColor];
[self addAttachmentUploadViewIfNecessary:stillImageView]; [self addAttachmentUploadViewIfNecessary:stillImageView];
__weak OWSMessageBubbleView *weakSelf = self; __weak OWSMessageBubbleView *weakSelf = self;
@ -611,6 +612,7 @@ NS_ASSUME_NONNULL_BEGIN
// We need to specify a contentMode since the size of the image // We need to specify a contentMode since the size of the image
// might not match the aspect ratio of the view. // might not match the aspect ratio of the view.
animatedImageView.contentMode = UIViewContentModeScaleAspectFill; animatedImageView.contentMode = UIViewContentModeScaleAspectFill;
animatedImageView.backgroundColor = [UIColor whiteColor];
[self addAttachmentUploadViewIfNecessary:animatedImageView]; [self addAttachmentUploadViewIfNecessary:animatedImageView];
__weak OWSMessageBubbleView *weakSelf = self; __weak OWSMessageBubbleView *weakSelf = self;

Loading…
Cancel
Save