Skip to content

Commit

Permalink
AND-8558 DynamicShader crash on empty area
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterBin committed Sep 27, 2024
1 parent 68be19c commit 443f54b
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,14 @@ public class SplitLine(
/* right = */ bounds.right,
/* bottom = */ bounds.bottom,
)
super.drawBackground(context, firstBounds, zeroLineYFraction, path, opacity)

if (firstBounds.isEmpty.not()) {
super.drawBackground(context, firstBounds, zeroLineYFraction, path, opacity)
}
backgroundShader = backgroundShaderSecond
super.drawBackground(context, secondBounds, zeroLineYFraction, path, opacity)
if (secondBounds.isEmpty.not()) {
super.drawBackground(context, secondBounds, zeroLineYFraction, path, opacity)
}
backgroundShader = backgroundShaderFirst
}
}

0 comments on commit 443f54b

Please sign in to comment.