Skip to content

Commit

Permalink
Merge pull request #5 from tangem/bugfix/AND-8558-DynamicShader-crash…
Browse files Browse the repository at this point in the history
…-on-empty-area

AND-8558 DynamicShader crash on empty area
  • Loading branch information
MasterBin authored Sep 27, 2024
2 parents 68be19c + 443f54b commit ece15dc
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 ece15dc

Please sign in to comment.