diff options
author | Allan Wang <me@allanwang.ca> | 2018-12-24 22:00:41 -0500 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2018-12-24 22:00:41 -0500 |
commit | d850474b0a82ee00d094990d9bd3392ae8cd9575 (patch) | |
tree | e5bdf272058d345871d615480764468fc95702d7 /core-ui/src | |
parent | 84174b8f5bdb0107bee48e0b2b8613a9015eb36e (diff) | |
download | kau-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.kt | 2 |
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) |