From ff2a6237d1412b400644650f12389fefe73480c8 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 16 Aug 2019 00:26:22 -0700 Subject: Apply spotless --- .../main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt | 2 +- core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt index 4631aec..2a057cb 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt @@ -127,7 +127,7 @@ class CollapsibleViewDelegate : CollapsibleView { override fun setExpanded(expand: Boolean) = setExpanded(expand, true) override fun setExpanded(expand: Boolean, animate: Boolean) { if (expand == expanded) { - return //state already matches + return // state already matches } val target = if (expand) 1f else 0f if (animate) { diff --git a/core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt b/core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt index b1e442f..728ba7b 100644 --- a/core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt +++ b/core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt @@ -115,7 +115,7 @@ class MeasureSpecDelegate : MeasureSpecContract { view.parentViewGroup.getWindowVisibleDisplayFrame(parentFrame) var width = View.MeasureSpec.getSize(widthMeasureSpec).toFloat() var height = View.MeasureSpec.getSize(heightMeasureSpec).toFloat() - //first cycle - relative to parent + // first cycle - relative to parent if (relativeHeightToParent > 0) { height = relativeHeightToParent * parentFrame.height() } @@ -128,7 +128,7 @@ class MeasureSpecDelegate : MeasureSpecContract { } else if (relativeWidth > 0) { width = relativeWidth * height } - //third cycle - relative to each other + // third cycle - relative to each other if (postRelativeHeight > 0) { height = postRelativeHeight * width } else if (postRelativeWidth > 0) { -- cgit v1.2.3