Commit a6220b8b by andrewlewis Committed by Oliver Woodman

Handle control layouts with no repeat button

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=155625893
parent 02c51ee0
...@@ -664,7 +664,7 @@ public class PlaybackControlView extends FrameLayout { ...@@ -664,7 +664,7 @@ public class PlaybackControlView extends FrameLayout {
} }
private void updateRepeatModeButton() { private void updateRepeatModeButton() {
if (!isVisible() || !isAttachedToWindow) { if (!isVisible() || !isAttachedToWindow || repeatToggleButton == null) {
return; return;
} }
if (repeatToggleModes == REPEAT_TOGGLE_MODE_NONE) { if (repeatToggleModes == REPEAT_TOGGLE_MODE_NONE) {
......
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