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
|
|
@ -33,6 +33,11 @@
|
||||||
</li>
|
</li>
|
||||||
<li><b>FIX:</b> Last song in the song view not showing up.
|
<li><b>FIX:</b> Last song in the song view not showing up.
|
||||||
</li>
|
</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>
|
</ol>
|
||||||
|
|
||||||
<h3>Version 0.9.43</h3>
|
<h3>Version 0.9.43</h3>
|
||||||
|
|
|
||||||
|
|
@ -686,13 +686,8 @@ public abstract class AbsSlidingMusicPanelActivity extends AbsMusicServiceActivi
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setSeekBarTint(SeekBar seekBar, @ColorInt int thumbColor, @ColorInt int progressColor) {
|
private static void setSeekBarTint(SeekBar seekBar, @ColorInt int thumbColor, @ColorInt int progressColor) {
|
||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
|
seekBar.getThumb().mutate().setColorFilter(thumbColor, PorterDuff.Mode.SRC_IN);
|
||||||
seekBar.setThumbTintList(ColorStateList.valueOf(thumbColor));
|
seekBar.getProgressDrawable().mutate().setColorFilter(progressColor, PorterDuff.Mode.SRC_IN);
|
||||||
seekBar.setProgressTintList(ColorStateList.valueOf(progressColor));
|
|
||||||
} else {
|
|
||||||
seekBar.getThumb().setColorFilter(thumbColor, PorterDuff.Mode.SRC_IN);
|
|
||||||
seekBar.getProgressDrawable().setColorFilter(progressColor, PorterDuff.Mode.SRC_IN);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setUpProgressSlider() {
|
private void setUpProgressSlider() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue