Skip to content

Commit de0bf4e

Browse files
author
Pfuster12
committed
fix: guideline paint not being used
1 parent 0fc332a commit de0bf4e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

app/src/main/java/com/yabu/livechartdemoapp/MainActivity.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class MainActivity : AppCompatActivity() {
3030
val chartStyle = LiveChartStyle().apply {
3131
mainColor = Color.GRAY
3232
pathStrokeWidth = 8f
33+
guideLineColor = Color.BLUE
3334
secondPathStrokeWidth = 4f
3435
textHeight = 40f
3536
textColor = Color.WHITE

livechart/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ android {
1414
minSdkVersion 21
1515
targetSdkVersion 29
1616
versionCode 2
17-
versionName "1.3.1"
17+
versionName "1.3.2"
1818

1919
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2020
consumerProguardFiles "consumer-rules.pro"

livechart/src/main/java/com/yabu/livechart/view/LiveChartView.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ open class LiveChartView(context: Context, attrs: AttributeSet?) : View(context,
764764
else
765765
chartBounds.end/verticalGuidelineStep)*i,
766766
chartBounds.top,
767-
boundsLinePaint
767+
guideLinePaint
768768
)
769769
}
770770
}
@@ -779,7 +779,7 @@ open class LiveChartView(context: Context, attrs: AttributeSet?) : View(context,
779779
else
780780
chartBounds.end,
781781
(chartBounds.bottom/horizontalGuidelineStep)*i,
782-
boundsLinePaint
782+
guideLinePaint
783783
)
784784
}
785785
}

0 commit comments

Comments
 (0)