aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--about/src/main/kotlin/ca/allanwang/kau/about/AboutActivityBase.kt2
-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
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) {