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);
}

View file

@ -18,6 +18,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:autoRewind="true"
app:progressAndPlayTint="@android:color/transparent"
app:foregroundTintColor="@color/core_ultramarine"
app:small="true" />