diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-11 13:51:40 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-11 13:51:40 -0700 |
commit | 11090367b5783d33aae97637cb08360be9659ff9 (patch) | |
tree | 8bd2da584d97fb59d9f176dac75b2f42f8568e6d /sample/src/main/kotlin/ca | |
parent | 3b7cd18459b5cbe5ff86ca3af9bddd9a222d3e67 (diff) | |
download | kau-11090367b5783d33aae97637cb08360be9659ff9.tar.gz kau-11090367b5783d33aae97637cb08360be9659ff9.tar.bz2 kau-11090367b5783d33aae97637cb08360be9659ff9.zip |
Fix selection and add fade effect
Diffstat (limited to 'sample/src/main/kotlin/ca')
-rw-r--r-- | sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt index cb1cd77..98285d8 100644 --- a/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt +++ b/sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt @@ -34,13 +34,13 @@ class MainActivity : KPrefActivity() { reload() val darkerColor = it.darken() this@MainActivity.navigationBarColor = darkerColor - toolbarCanvas.ripple(darkerColor, RippleCanvas.MIDDLE, RippleCanvas.END, duration = 500) + toolbarCanvas.ripple(darkerColor, RippleCanvas.MIDDLE, RippleCanvas.END, duration = 500L) }, configs = { allowCustom = false }) colorPicker(title = R.string.background_color, description = R.string.color_custom_alpha, - getter = { KPrefSample.bgColor }, setter = { KPrefSample.bgColor = it; bgCanvas.ripple(it, duration = 500) }, + getter = { KPrefSample.bgColor }, setter = { KPrefSample.bgColor = it; bgCanvas.ripple(it, duration = 500L) }, configs = { allowCustomAlpha = true allowCustom = true |