Skip to content

Commit 8486dbf

Browse files
committed
color setters bug fix
1 parent 5eeddb9 commit 8486dbf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

fillprogresslayout/src/main/java/com/devzone/fillprogresslayout/FillProgressLayout.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,12 +216,14 @@ class FillProgressLayout : LinearLayout {
216216
fun setProgressBackgroundColor(@ColorRes resId: Int) {
217217
if (isValidRes(resId)) {
218218
mBackgroundColor = ContextCompat.getColor(context, resId)
219+
initPaint()
219220
}
220221
}
221222

222223
fun setProgressColor(@ColorRes resId: Int) {
223224
if (isValidRes(resId)) {
224225
mProgressColor = ContextCompat.getColor(context, resId)
226+
initPaint()
225227
}
226228
}
227229

0 commit comments

Comments
 (0)