switch to horizontal progress bar
This commit is contained in:
parent
94f244089b
commit
6bfb72c356
3 changed files with 23 additions and 7 deletions
|
|
@ -274,7 +274,7 @@ public class CardPlayerFragment extends AbsPlayerFragment implements PlayerAlbum
|
|||
public void onColorChanged(int color) {
|
||||
animateColorChange(color);
|
||||
playbackControlsFragment.setDark(ColorUtil.isColorLight(color));
|
||||
playbackControlsFragment.updateBufferingIndicatorColor(ColorUtil.invertColor(color));
|
||||
playbackControlsFragment.updateBufferingIndicatorColor(color);
|
||||
getCallbacks().onPaletteColorChanged();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -134,10 +134,13 @@ public class CardPlayerPlaybackControlsFragment extends AbsMusicServiceFragment
|
|||
} else {
|
||||
playerFabPlayPauseDrawable.setPlay(animate);
|
||||
}
|
||||
binding.playerBufferingIndicator.setVisibility(MusicPlayerRemote.isBuffering() ? View.VISIBLE : View.GONE);
|
||||
|
||||
binding.progressBarLoading.setVisibility(MusicPlayerRemote.isBuffering() ? View.VISIBLE : View.GONE);
|
||||
binding.progressBarPlaying.setVisibility(MusicPlayerRemote.isBuffering() ? View.GONE : View.VISIBLE);
|
||||
}
|
||||
|
||||
public void updateBufferingIndicatorColor(int color) {
|
||||
binding.playerBufferingIndicator.setProgressBackgroundTintList(ColorStateList.valueOf(getResources().getColor(android.R.color.transparent)));
|
||||
binding.playerBufferingIndicator.setIndeterminateTintList(ColorStateList.valueOf(color));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue