aboutsummaryrefslogtreecommitdiff
path: root/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items
diff options
context:
space:
mode:
authorAllan Wang <allanwang@google.com>2019-08-15 16:04:14 -0700
committerAllan Wang <allanwang@google.com>2019-08-15 16:04:14 -0700
commit5aefeee08f68777dd07a16bd42a7d2392db6bbc9 (patch)
treea357e6cd419123d69ca5d2977c8ce839c56f3d87 /kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items
parent85e9e1f253bb14512ae404989c45cbc199eb1eba (diff)
downloadkau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.gz
kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.tar.bz2
kau-5aefeee08f68777dd07a16bd42a7d2392db6bbc9.zip
Apply spotless
Diffstat (limited to 'kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items')
-rw-r--r--kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt2
-rw-r--r--kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt2
2 files changed, 2 insertions, 2 deletions
diff --git a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt
index f4f4a65..a867d06 100644
--- a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt
+++ b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefCheckbox.kt
@@ -39,7 +39,7 @@ open class KPrefCheckbox(builder: BaseContract<Boolean>) : KPrefItemBase<Boolean
val checkbox = holder.bindInnerView<CheckBox>(R.layout.kau_pref_checkbox)
withAccentColor(checkbox::tint)
checkbox.isChecked = pref
- checkbox.jumpDrawablesToCurrentState() //Cancel the animation
+ checkbox.jumpDrawablesToCurrentState() // Cancel the animation
}
override val type: Int
diff --git a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt
index 5de1f83..9abdf09 100644
--- a/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt
+++ b/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/items/KPrefSeekbar.kt
@@ -61,7 +61,7 @@ open class KPrefSeekbar(val builder: KPrefSeekbarContract) : KPrefItemBase<Int>(
}
withAccentColor(seekbar::tint)
text.text =
- builder.toText(seekbar.progress.fromProgress) //set initial text in case no change occurs
+ builder.toText(seekbar.progress.fromProgress) // set initial text in case no change occurs
seekbar.progress = pref.toProgress
seekbar.isEnabled = builder.enabler()
}