aboutsummaryrefslogtreecommitdiff
path: root/core-ui/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-12-24 22:00:41 -0500
committerAllan Wang <me@allanwang.ca>2018-12-24 22:00:41 -0500
commitd850474b0a82ee00d094990d9bd3392ae8cd9575 (patch)
treee5bdf272058d345871d615480764468fc95702d7 /core-ui/src
parent84174b8f5bdb0107bee48e0b2b8613a9015eb36e (diff)
downloadkau-d850474b0a82ee00d094990d9bd3392ae8cd9575.tar.gz
kau-d850474b0a82ee00d094990d9bd3392ae8cd9575.tar.bz2
kau-d850474b0a82ee00d094990d9bd3392ae8cd9575.zip
Simplify color utils and fix tests, resolves #156
Diffstat (limited to 'core-ui/src')
-rw-r--r--core-ui/src/main/kotlin/ca/allanwang/kau/ui/views/CutoutView.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/core-ui/src/main/kotlin/ca/allanwang/kau/ui/views/CutoutView.kt b/core-ui/src/main/kotlin/ca/allanwang/kau/ui/views/CutoutView.kt
index 6da65a3..474d40a 100644
--- a/core-ui/src/main/kotlin/ca/allanwang/kau/ui/views/CutoutView.kt
+++ b/core-ui/src/main/kotlin/ca/allanwang/kau/ui/views/CutoutView.kt
@@ -90,7 +90,7 @@ class CutoutView @JvmOverloads constructor(
if (attrs != null) {
val a = context.obtainStyledAttributes(attrs, R.styleable.CutoutView, 0, 0)
if (a.hasValue(R.styleable.CutoutView_font))
- paint.typeface = context.getFont(a.getString(R.styleable.CutoutView_font))
+ paint.typeface = context.getFont(a.getString(R.styleable.CutoutView_font)!!)
foregroundColor = a.getColor(R.styleable.CutoutView_foregroundColor, foregroundColor)
text = a.getString(R.styleable.CutoutView_android_text) ?: text
minHeight = a.getDimension(R.styleable.CutoutView_android_minHeight, minHeight)