Hopefully fixed the bug where the alternative progress slider always stayed black on some devices.

This commit is contained in:
Karim Abou Zeid 2015-08-23 19:42:38 +02:00
commit d3cf220cd4
2 changed files with 7 additions and 7 deletions

View file

@ -33,6 +33,11 @@
</li>
<li><b>FIX:</b> Last song in the song view not showing up.
</li>
<li><b>FIX:</b> Hopefully fixed the bug where the alternative progress slider always stayed
black on some devices. Please report if the bug is fixed at the <a
href="https://plus.google.com/u/0/communities/106227738496107108513">Google+
Community</a>.
</li>
</ol>
<h3>Version 0.9.43</h3>

View file

@ -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() {