Skip to content

Commit b30d75f

Browse files
committed
color setters bug fix
1 parent c831ccd commit b30d75f

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
@@ -243,12 +243,14 @@ class FillProgressLayout : LinearLayout {
243243
fun setProgressBackgroundColor(@ColorRes resId: Int) {
244244
if (isValidRes(resId)) {
245245
mBackgroundColor = ContextCompat.getColor(context, resId)
246+
initPaint()
246247
}
247248
}
248249

249250
fun setProgressColor(@ColorRes resId: Int) {
250251
if (isValidRes(resId)) {
251252
mProgressColor = ContextCompat.getColor(context, resId)
253+
initPaint()
252254
}
253255
}
254256

0 commit comments

Comments
 (0)