diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt | 2 | ||||
-rw-r--r-- | core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt | 4 |
2 files changed, 3 insertions, 3 deletions
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) { |