set mute button in main player from other player
This commit is contained in:
parent
0400fcb106
commit
ee75909c80
|
@ -695,7 +695,7 @@ public final class MainVideoPlayer extends AppCompatActivity
|
||||||
@Override
|
@Override
|
||||||
public void onMuteUnmuteButtonClicled() {
|
public void onMuteUnmuteButtonClicled() {
|
||||||
super.onMuteUnmuteButtonClicled();
|
super.onMuteUnmuteButtonClicled();
|
||||||
updatePlaybackButtons();
|
setMuteButton(muteButton, playerImpl.isMuted());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -785,6 +785,7 @@ public final class MainVideoPlayer extends AppCompatActivity
|
||||||
animateView(secondaryControls, SLIDE_AND_ALPHA, !isMoreControlsVisible,
|
animateView(secondaryControls, SLIDE_AND_ALPHA, !isMoreControlsVisible,
|
||||||
DEFAULT_CONTROLS_DURATION);
|
DEFAULT_CONTROLS_DURATION);
|
||||||
showControls(DEFAULT_CONTROLS_DURATION);
|
showControls(DEFAULT_CONTROLS_DURATION);
|
||||||
|
setMuteButton(muteButton, playerImpl.isMuted());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onShareClicked() {
|
private void onShareClicked() {
|
||||||
|
@ -984,7 +985,6 @@ public final class MainVideoPlayer extends AppCompatActivity
|
||||||
|
|
||||||
setRepeatModeButton(repeatButton, getRepeatMode());
|
setRepeatModeButton(repeatButton, getRepeatMode());
|
||||||
setShuffleButton(shuffleButton, playQueue.isShuffled());
|
setShuffleButton(shuffleButton, playQueue.isShuffled());
|
||||||
setMuteButton(muteButton, playerImpl.isMuted());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buildQueue() {
|
private void buildQueue() {
|
||||||
|
@ -1090,6 +1090,10 @@ public final class MainVideoPlayer extends AppCompatActivity
|
||||||
return repeatButton;
|
return repeatButton;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ImageButton getMuteButton() {
|
||||||
|
return muteButton;
|
||||||
|
}
|
||||||
|
|
||||||
public ImageButton getPlayPauseButton() {
|
public ImageButton getPlayPauseButton() {
|
||||||
return playPauseButton;
|
return playPauseButton;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue