You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by GitBox <gi...@apache.org> on 2018/11/06 10:05:40 UTC
[GitHub] ho2xing opened a new issue #1720: BoxShadowUtil 方法 draw(Canvas canvas) 行 canvas.clipRect 在android 9.0 报错
ho2xing opened a new issue #1720: BoxShadowUtil 方法 draw(Canvas canvas) 行 canvas.clipRect 在android 9.0 报错
URL: https://github.com/apache/incubator-weex/issues/1720
BoxShadowUtil 类 draw 报错
@Override
public void draw(Canvas canvas) {
....
**canvas.clipRect(newRect,** Region.Op.REPLACE); //此行报错,
...
}
错误信息:"Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed"
原因:
private static void checkValidClipOp(@NonNull Region.Op op) {
if (sCompatiblityVersion >= Build.VERSION_CODES.P
&& op != Region.Op.INTERSECT && op != Region.Op.DIFFERENCE) {
throw new IllegalArgumentException(
"Invalid Region.Op - only INTERSECT and DIFFERENCE are allowed");
}
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services