Fix appearance of small audio view to show correct background color and the progress circle.

This commit is contained in:
Fumiaki Yoshimatsu
2020-11-12 11:50:07 -05:00
committed by Cody Henthorne
parent 4ecfee292e
commit 4c301a49b4
2 changed files with 4 additions and 2 deletions

View File

@@ -371,10 +371,11 @@ public final class AudioView extends FrameLayout {
}
private void showPlayButton() {
if (!smallView || seekBar.getProgress() == 0) {
if (!smallView) {
circleProgress.setVisibility(GONE);
} else if (seekBar.getProgress() == 0) {
circleProgress.setInstantProgress(1);
}
circleProgress.setVisibility(GONE);
playPauseButton.setVisibility(VISIBLE);
controlToggle.displayQuick(progressAndPlay);
}