Hopefully fixed the bug where the alternative progress slider always stayed black on some devices.
This commit is contained in:
parent
c2586943d3
commit
d3cf220cd4
2 changed files with 7 additions and 7 deletions
|
|
@ -686,13 +686,8 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
|||
}
|
||||
|
||||
private static void setSeekBarTint(SeekBar seekBar, @ColorInt int thumbColor, @ColorInt int progressColor) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
||||
seekBar.setThumbTintList(ColorStateList.valueOf(thumbColor));
|
||||
seekBar.setProgressTintList(ColorStateList.valueOf(progressColor));
|
||||
} else {
|
||||
seekBar.getThumb().setColorFilter(thumbColor, PorterDuff.Mode.SRC_IN);
|
||||
seekBar.getProgressDrawable().setColorFilter(progressColor, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
seekBar.getThumb().mutate().setColorFilter(thumbColor, PorterDuff.Mode.SRC_IN);
|
||||
seekBar.getProgressDrawable().mutate().setColorFilter(progressColor, PorterDuff.Mode.SRC_IN);
|
||||
}
|
||||
|
||||
private void setUpProgressSlider() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue