Skip to content

Commit

Permalink
Don't draw section if amount is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Syntey committed Jan 30, 2024
1 parent 29ded3d commit b8b7397
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ class DonutProgressView @JvmOverloads constructor(
assertDataConsistency(sections)

sections
.filter { it.amount >= 0f }
.filter { it.amount > 0f }
.forEach { section ->
val newLineColor = section.color
if (hasEntriesForSection(section.name).not()) {
Expand Down

0 comments on commit b8b7397

Please sign in to comment.