-
-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the blurview draw the overlayColor is incorrect #203
Comments
Post your setup. |
Hi, I found the cause of the problem.
canvas.drawColor(overlayColor) , here can not execute. so the overlayColor can not draw.
I set the overlayColor is RED for demo when RN setClipChildren(false) default when setClipChildren(true) for example
3.the error exist in React Native project , but I can not find in normal andord project even I set setClipChildren(false),
this React Native project use BlurView in Android , you can see this |
Ha ha, I can show error in your demo ~~~
I think the outline affect the bulrView draw, so the demo usually can not find this bug. |
Please include:
master branch
2). the blurview draw the overlayColor is incorrect.
PreDrawBlurController#public boolean draw(Canvas canvas) {
....
canvas.restore();
// NOTE: need delete there, because only draw overlayColor to blurView content.
// current canvas.drawColor(overlayColor) will cause the whole canvas(decorView) draw the overlayColer
if (overlayColor != TRANSPARENT) {
canvas.drawColor(overlayColor);
}
return true;
}
and method blurAndSave() to add draw overlayColor ,mix to bulred bitmap
The text was updated successfully, but these errors were encountered: