aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2020-07-18 19:06:28 -0700
committerGitHub <noreply@github.com>2020-07-18 19:06:28 -0700
commit1b26bce26cc675d23e500eee4edbc675a818fc61 (patch)
treea3248b4cdb5f76e819228b4278806ad1998eaed8 /app/src
parent2a00941b2c6aa33dcc1274370134d2870a06af9e (diff)
parent861e91b6fab3cf91012d737c169b8f751684395f (diff)
downloadfrost-1b26bce26cc675d23e500eee4edbc675a818fc61.tar.gz
frost-1b26bce26cc675d23e500eee4edbc675a818fc61.tar.bz2
frost-1b26bce26cc675d23e500eee4edbc675a818fc61.zip
Merge pull request #1697 from AllanWang/kpref-text-seekbar
Append percentage on first bind
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/kotlin/com/pitchedapps/frost/views/KPrefTextSeekbar.kt3
1 files changed, 1 insertions, 2 deletions
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<Any>) {
- 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) {