panic-java opened a new issue #2361: [Android] Unexpected behavior when 
canvas.clipRect(newRect, Region.Op.REPLACE),where weex version is 0.20.0.2
URL: https://github.com/apache/incubator-weex/issues/2361
 
 
   java.lang.IllegalArgumentException
   Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed
   
com.taobao.weex.utils.BoxShadowUtil$OverflowBitmapDrawable.draw(SourceFile:402)
   
   android 9,level 28,崩溃处:
   com.taobao.weex.utils.BoxShadowUtils 402行,
   
   canvas.clipRect(newRect, Region.Op.REPLACE);
   
   应做版本兼容
    if(Build.VERSION.SDK_INT >= 26){
        canvas.clipRect(mClipBounds);
    }else {
        canvas.clipRect(mClipBounds, Region.Op.UNION);
    }

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to