From 861e91b6fab3cf91012d737c169b8f751684395f Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Sat, 18 Jul 2020 18:53:31 -0700 Subject: Append percentage on first bind --- app/src/main/kotlin/com/pitchedapps/frost/views/KPrefTextSeekbar.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/kotlin/com/pitchedapps/frost/views/KPrefTextSeekbar.kt b/app/src/main/kotlin/com/pitchedapps/frost/views/KPrefTextSeekbar.kt index e018b6d8..38ce0034 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/views/KPrefTextSeekbar.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/views/KPrefTextSeekbar.kt @@ -46,9 +46,7 @@ class KPrefTextSeekbar(builder: KPrefSeekbarContract) : KPrefSeekbar(builder) { @SuppressLint("MissingSuperCall") override fun bindView(holder: ViewHolder, payloads: List) { - super.bindView(holder, payloads) descOriginalSize = holder.desc?.textSize ?: 1f - holder.desc?.layoutParams builder.toText = { holder.desc?.setTextSize( TypedValue.COMPLEX_UNIT_PX, @@ -56,6 +54,7 @@ class KPrefTextSeekbar(builder: KPrefSeekbarContract) : KPrefSeekbar(builder) { ) "$it%" } + super.bindView(holder, payloads) } override fun unbindView(holder: ViewHolder) { -- cgit v1.2.3