diff options
author | ByteHamster <info@bytehamster.com> | 2019-10-13 21:42:49 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-10-13 21:42:49 +0200 |
commit | 3d8781d15618dc4346c89a4e0418ef2ebf081581 (patch) | |
tree | e62d6ae8aa831834521187f6fbfaae04bf07d42a /app/src | |
parent | 8d81fb8d9bf94c43ab467a0e0971455bb193e7a4 (diff) | |
download | AntennaPod-3d8781d15618dc4346c89a4e0418ef2ebf081581.zip |
Fixed statistics getting cut off
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/view/PieChartView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/view/PieChartView.java b/app/src/main/java/de/danoeh/antennapod/view/PieChartView.java index ada5401d8..d1b2abf23 100644 --- a/app/src/main/java/de/danoeh/antennapod/view/PieChartView.java +++ b/app/src/main/java/de/danoeh/antennapod/view/PieChartView.java @@ -88,7 +88,7 @@ public class PieChartView extends AppCompatImageView { float startAngle = 180; for (int i = 0; i < dataValues.length; i++) { float datum = dataValues[i]; - float sweepAngle = 180 * datum / valueSum; + float sweepAngle = (180f - PADDING_DEGREES) * (datum / valueSum); if (sweepAngle < MIN_DEGREES) { break; } |