This is an automated email from the ASF dual-hosted git repository.

moshen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-weex.git


The following commit(s) were added to refs/heads/master by this push:
     new 66b1302  [iOS] fix image show error
     new fa3391c  Merge pull request #3288 from jianhan-he/master
66b1302 is described below

commit 66b1302e3c278ff531bba2e170ece30d94869008
Author: linghe.lh <[email protected]>
AuthorDate: Thu Oct 22 14:29:27 2020 +0800

    [iOS] fix image show error
---
 ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m 
b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
index b117791..08d3635 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXImageComponent.m
@@ -311,7 +311,7 @@ WX_EXPORT_METHOD(@selector(save:))
 - (void)didFinishDrawingLayer:(BOOL)success {
     if ([self isViewLoaded]) {
         UIImage *image = ((UIImageView *)self.view).image;
-        if (image && !_layer.contents) {
+        if (image) {
             _layer.contents = (id)(image.CGImage);
         }
     }

Reply via email to