Fix not to show repeat button when its mode is NONE.

PiperOrigin-RevId: 330627047
This commit is contained in:
insun 2020-09-09 02:07:37 +01:00 committed by Oliver Woodman
parent b2b08ade99
commit 222ba22b10

View File

@ -716,6 +716,8 @@ public class StyledPlayerControlView extends FrameLayout {
controlViewLayoutManager.setShowButton(shuffleButton, showShuffleButton);
controlViewLayoutManager.setShowButton(subtitleButton, showSubtitleButton);
controlViewLayoutManager.setShowButton(vrButton, showVrButton);
controlViewLayoutManager.setShowButton(
repeatToggleButton, repeatToggleModes != RepeatModeUtil.REPEAT_TOGGLE_MODE_NONE);
addOnLayoutChangeListener(this::onLayoutChange);
}