Skip to content

Commit

Permalink
Bug fix for not appearing guideline
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil1104 committed Jan 16, 2020
1 parent a846a0e commit 5df3e83
Showing 1 changed file with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,30 +13,27 @@ public class CurveGraphConfig {
private WeakReference<Context> 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;
Expand Down

0 comments on commit 5df3e83

Please sign in to comment.