From ff2a6237d1412b400644650f12389fefe73480c8 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Fri, 16 Aug 2019 00:26:22 -0700 Subject: Apply spotless --- about/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt | 2 +- .../main/kotlin/ca/allanwang/kau/ui/views/CollapsibleViewDelegate.kt | 2 +- core/src/main/kotlin/ca/allanwang/kau/ui/views/MeasureSpecDelegate.kt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/about/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt b/about/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt index 5c3a00b..f02d073 100644 --- a/about/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt +++ b/about/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt @@ -79,7 +79,7 @@ abstract class AboutActivityBase(val rClass: Class<*>?, private val configBuilde super.onCreate(savedInstanceState) setContentView(R.layout.kau_activity_about) pageStatus = IntArray(panels.size) - pageStatus[0] = 2 //the first page is instantly visible + pageStatus[0] = 2 // the first page is instantly visible if (configs.textColor != null) { about_indicator.setColour(configs.textColor!!) } 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