Skip to content

Commit 020aa7d

Browse files
committed
Fix seek bar crash on API 15 and below
1 parent ef29062 commit 020aa7d

File tree

1 file changed

+1
-1
lines changed
  • dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/widget

1 file changed

+1
-1
lines changed

dynamic-support/src/main/java/com/pranavpandey/android/dynamic/support/widget/DynamicSeekBar.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void setProgressBarColor() {
244244
public void setThumbColor() {
245245
if (DynamicSdkUtils.is21()) {
246246
setThumbTintList(DynamicResourceUtils.getColorStateList(mColor));
247-
} else {
247+
} else if (DynamicSdkUtils.is16()) {
248248
setThumb(DynamicDrawableUtils.colorizeDrawable(getThumb(), mColor));
249249
}
250250
}

0 commit comments

Comments
 (0)