aboutsummaryrefslogtreecommitdiff
path: root/core/src/main
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2019-08-16 00:26:22 -0700
committerAllan Wang <me@allanwang.ca>2019-08-16 00:26:22 -0700
commitff2a6237d1412b400644650f12389fefe73480c8 (patch)
tree7a4578d02c9d93f922b721610124d445f7209ed3 /core/src/main
parent71dcceaf1970873596a59a734f1a574120beff6b (diff)
downloadkau-ff2a6237d1412b400644650f12389fefe73480c8.tar.gz
kau-ff2a6237d1412b400644650f12389fefe73480c8.tar.bz2
kau-ff2a6237d1412b400644650f12389fefe73480c8.zip
Apply spotless
Diffstat (limited to 'core/src/main')
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt2
-rw-r--r--core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt4
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) {