From 11090367b5783d33aae97637cb08360be9659ff9 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sun, 11 Jun 2017 13:51:40 -0700 Subject: Fix selection and add fade effect --- sample/src/main/kotlin/ca/allanwang/kau/sample/MainActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sample/src/main') 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 -- cgit v1.2.3