From 5df3e83547757cb6f67311bba246d5326033dc5c Mon Sep 17 00:00:00 2001 From: Swapnil Tiwari Date: Thu, 16 Jan 2020 14:27:49 +0530 Subject: [PATCH] Bug fix for not appearing guideline --- .../broooapps/graphview/CurveGraphConfig.java | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/graphview/src/main/java/com/broooapps/graphview/CurveGraphConfig.java b/graphview/src/main/java/com/broooapps/graphview/CurveGraphConfig.java index 2a5d159..60f68f8 100644 --- a/graphview/src/main/java/com/broooapps/graphview/CurveGraphConfig.java +++ b/graphview/src/main/java/com/broooapps/graphview/CurveGraphConfig.java @@ -13,30 +13,27 @@ public class CurveGraphConfig { private WeakReference ctxWeakRef; @ColorInt - int axisColor = 0; + int axisColor; @ColorInt - int backgroundColor = 0; + int xAxisScaleColor; @ColorInt - int xAxisScaleColor = 0; + int guidelineColor; @ColorInt - int guidelineColor = 0; + int yAxisScaleColor; - @ColorInt - int yAxisScaleColor = 0; - - int guidelineCount = 0; + int guidelineCount; - int intervalCount = 0; + int intervalCount; - String noDataMsg = null; + String noDataMsg; private CurveGraphConfig(Builder builder) { xAxisScaleColor = (builder.xAxisScaleColor == 0) ? ContextCompat.getColor(builder.ctxWeakRef.get(), R.color.Black) : builder.xAxisScaleColor; yAxisScaleColor = (builder.yAxisScaleColor == 0) ? ContextCompat.getColor(builder.ctxWeakRef.get(), R.color.scaleTextColor) : builder.yAxisScaleColor; - guidelineCount = (builder.guidelineCount == 0) ? ContextCompat.getColor(builder.ctxWeakRef.get(), R.color.guidelineColor) : builder.guidelineColor; + guidelineColor = (builder.guidelineColor == 0) ? ContextCompat.getColor(builder.ctxWeakRef.get(), R.color.guidelineColor) : builder.guidelineColor; axisColor = (builder.axisColor == 0) ? ContextCompat.getColor(builder.ctxWeakRef.get(), R.color.axisColor) : builder.axisColor; intervalCount = (builder.intervalCount == 0) ? 5 : builder.intervalCount; guidelineCount = (builder.guidelineCount == 0) ? 5 : builder.guidelineCount;