From 5a1d1e1707f3fbb3de77bfa84b2b5cdbd6214218 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 30 Nov 2021 22:09:28 +0100 Subject: [PATCH] EPS text filled --- .../overview/graphExtensions/PointsWithLabelGraphSeries.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/PointsWithLabelGraphSeries.java b/core/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/PointsWithLabelGraphSeries.java index 43f83607f6..5fdc38b7ee 100644 --- a/core/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/PointsWithLabelGraphSeries.java +++ b/core/src/main/java/info/nightscout/androidaps/plugins/general/overview/graphExtensions/PointsWithLabelGraphSeries.java @@ -273,12 +273,12 @@ public class PointsWithLabelGraphSeries e mPaint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD)); Rect bounds = new Rect(); mPaint.getTextBounds(value.getLabel(), 0, value.getLabel().length(), bounds); - mPaint.setStyle(Paint.Style.STROKE); float px = endX + bounds.height() / 2.0f; float py = (float) (graphHeight * ratY + bounds.width() + 10); canvas.save(); canvas.rotate(-90, px, py); canvas.drawText(value.getLabel(), px, py, mPaint); + mPaint.setStyle(Paint.Style.STROKE); canvas.drawRect(px - 3, bounds.top + py - 3, bounds.right + px + 3, bounds.bottom + py + 3, mPaint); canvas.restore(); }