From 273430e0fb1b884826382349b46a917ce42ebe0b Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Mon, 1 Jul 2019 13:50:27 -0700 Subject: Remove extra dpToPx conversion, resolves #210 --- .../kotlin/ca/allanwang/kau/ui/widgets/ElasticDragDismissFrameLayout.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core-ui/src/main/kotlin') diff --git a/core-ui/src/main/kotlin/ca/allanwang/kau/ui/widgets/ElasticDragDismissFrameLayout.kt b/core-ui/src/main/kotlin/ca/allanwang/kau/ui/widgets/ElasticDragDismissFrameLayout.kt index f4578f2..2cf005a 100644 --- a/core-ui/src/main/kotlin/ca/allanwang/kau/ui/widgets/ElasticDragDismissFrameLayout.kt +++ b/core-ui/src/main/kotlin/ca/allanwang/kau/ui/widgets/ElasticDragDismissFrameLayout.kt @@ -50,7 +50,7 @@ class ElasticDragDismissFrameLayout @JvmOverloads constructor( ) : FrameLayout(context, attrs, defStyleAttr, defStyleRes) { // configurable attribs - var dragDismissDistance = context.dimen(R.dimen.kau_drag_dismiss_distance).dpToPx + var dragDismissDistance = context.dimen(R.dimen.kau_drag_dismiss_distance) var dragDismissFraction = -1f var dragDismissScale = 1f set(value) { -- cgit v1.2.3