Skip to content

Commit

Permalink
Merge pull request #96 from futuredapp/fix/zero-values
Browse files Browse the repository at this point in the history
Don't draw section if amount is zero
  • Loading branch information
matejsemancik committed Jan 31, 2024
2 parents 29ded3d + b8b7397 commit c33fc5c
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 c33fc5c

Please sign in to comment.