Commit 222ba22b by insun Committed by Oliver Woodman

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

PiperOrigin-RevId: 330627047
parent b2b08ade
...@@ -716,6 +716,8 @@ public class StyledPlayerControlView extends FrameLayout { ...@@ -716,6 +716,8 @@ public class StyledPlayerControlView extends FrameLayout {
controlViewLayoutManager.setShowButton(shuffleButton, showShuffleButton); controlViewLayoutManager.setShowButton(shuffleButton, showShuffleButton);
controlViewLayoutManager.setShowButton(subtitleButton, showSubtitleButton); controlViewLayoutManager.setShowButton(subtitleButton, showSubtitleButton);
controlViewLayoutManager.setShowButton(vrButton, showVrButton); controlViewLayoutManager.setShowButton(vrButton, showVrButton);
controlViewLayoutManager.setShowButton(
repeatToggleButton, repeatToggleModes != RepeatModeUtil.REPEAT_TOGGLE_MODE_NONE);
addOnLayoutChangeListener(this::onLayoutChange); addOnLayoutChangeListener(this::onLayoutChange);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment