aboutsummaryrefslogtreecommitdiff
path: root/core-ui/src/main/kotlin
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-07-01 13:50:27 -0700
committerAllan Wang <me@allanwang.ca>2019-07-01 13:50:27 -0700
commit273430e0fb1b884826382349b46a917ce42ebe0b (patch)
tree9be81c596c41c63d5f950d4852be5717c5298782 /core-ui/src/main/kotlin
parentf264bc4735e6d1aa9f9683f56b3c5f6e05c5a20b (diff)
downloadkau-273430e0fb1b884826382349b46a917ce42ebe0b.tar.gz
kau-273430e0fb1b884826382349b46a917ce42ebe0b.tar.bz2
kau-273430e0fb1b884826382349b46a917ce42ebe0b.zip
Remove extra dpToPx conversion, resolves #210
Diffstat (limited to 'core-ui/src/main/kotlin')
-rw-r--r--core-ui/src/main/kotlin/ca/allanwang/kau/ui/widgets/ElasticDragDismissFrameLayout.kt2
1 files changed, 1 insertions, 1 deletions
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) {