We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd9d76e + 9d4f839 commit fd1bce3Copy full SHA for fd1bce3
library/src/main/kotlin/app/futured/donut/DonutProgressView.kt
@@ -260,7 +260,7 @@ class DonutProgressView @JvmOverloads constructor(
260
assertDataConsistency(sections)
261
262
sections
263
- .filter { it.amount > 0f }
+ .filter { it.amount >= 0f }
264
.forEach { section ->
265
val newLineColor = section.color
266
if (hasEntriesForSection(section.name).not()) {
@@ -487,7 +487,7 @@ class DonutProgressView @JvmOverloads constructor(
487
canvas.translate(centerX, centerY)
488
489
bgLine.draw(canvas)
490
- lines.forEach { it.draw(canvas) }
+ lines.filter { it.mLength > 0f } .forEach { it.draw(canvas) }
491
}
492
493
private fun dpToPx(dp: Float) = TypedValue.applyDimension(
0 commit comments