aboutsummaryrefslogtreecommitdiff
path: root/colorpicker/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-12-30 19:13:04 -0800
committerAllan Wang <me@allanwang.ca>2019-12-30 19:13:04 -0800
commit058020e7cc412a2a17dec30edb754be7e1415abd (patch)
tree19f5889afb3cbb451102fcc6d65872ae00f0423a /colorpicker/src/main
parent7a007420e74e6bd4e08bde123e6e163eefc18b92 (diff)
downloadkau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.gz
kau-058020e7cc412a2a17dec30edb754be7e1415abd.tar.bz2
kau-058020e7cc412a2a17dec30edb754be7e1415abd.zip
Update CircleView and changelog
Diffstat (limited to 'colorpicker/src/main')
-rw-r--r--colorpicker/src/main/kotlin/ca/allanwang/kau/colorpicker/CircleView.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/colorpicker/src/main/kotlin/ca/allanwang/kau/colorpicker/CircleView.kt b/colorpicker/src/main/kotlin/ca/allanwang/kau/colorpicker/CircleView.kt
index 39fb1cf..27849bc 100644
--- a/colorpicker/src/main/kotlin/ca/allanwang/kau/colorpicker/CircleView.kt
+++ b/colorpicker/src/main/kotlin/ca/allanwang/kau/colorpicker/CircleView.kt
@@ -143,8 +143,8 @@ class CircleView @JvmOverloads constructor(context: Context, attrs: AttributeSet
setMeasuredDimension(measuredWidth, measuredWidth)
}
- override fun onDraw(canvas: Canvas) {
- super.onDraw(canvas)
+ override fun onDrawForeground(canvas: Canvas) {
+ super.onDrawForeground(canvas)
val centerWidth = (measuredWidth / 2).toFloat()
val centerHeight = (measuredHeight / 2).toFloat()
if (withBorder) canvas.drawCircle(centerWidth, centerHeight, centerWidth, whitePaint)