This commit is contained in:
karol 2020-03-01 16:42:46 +01:00
parent ee75909c80
commit a6fcb70d12
5 changed files with 9 additions and 10 deletions

View File

@ -397,8 +397,8 @@ public final class BackgroundPlayer extends Service {
} }
@Override @Override
public void onMuteUnmuteButtonClicled() { public void onMuteUnmuteButtonClicked() {
super.onMuteUnmuteButtonClicled(); super.onMuteUnmuteButtonClicked();
updatePlayback(); updatePlayback();
} }

View File

@ -542,7 +542,7 @@ public abstract class BasePlayer implements
// Mute / Unmute // Mute / Unmute
//////////////////////////////////////////////////////////////////////////*/ //////////////////////////////////////////////////////////////////////////*/
public void onMuteUnmuteButtonClicled() { public void onMuteUnmuteButtonClicked() {
if (DEBUG) Log.d(TAG, "onMuteUnmuteButtonClicled() called"); if (DEBUG) Log.d(TAG, "onMuteUnmuteButtonClicled() called");
simpleExoPlayer.setVolume(isMuted() ? 1 : 0); simpleExoPlayer.setVolume(isMuted() ? 1 : 0);
} }

View File

@ -693,8 +693,8 @@ public final class MainVideoPlayer extends AppCompatActivity
} }
@Override @Override
public void onMuteUnmuteButtonClicled() { public void onMuteUnmuteButtonClicked() {
super.onMuteUnmuteButtonClicled(); super.onMuteUnmuteButtonClicked();
setMuteButton(muteButton, playerImpl.isMuted()); setMuteButton(muteButton, playerImpl.isMuted());
} }
@ -736,7 +736,7 @@ public final class MainVideoPlayer extends AppCompatActivity
onPlayBackgroundButtonClicked(); onPlayBackgroundButtonClicked();
} else if (v.getId() == muteButton.getId()) { } else if (v.getId() == muteButton.getId()) {
onMuteUnmuteButtonClicled(); onMuteUnmuteButtonClicked();
} else if (v.getId() == closeButton.getId()) { } else if (v.getId() == closeButton.getId()) {
onPlaybackShutdown(); onPlaybackShutdown();

View File

@ -609,8 +609,8 @@ public final class PopupVideoPlayer extends Service {
} }
@Override @Override
public void onMuteUnmuteButtonClicled() { public void onMuteUnmuteButtonClicked() {
super.onMuteUnmuteButtonClicled(); super.onMuteUnmuteButtonClicked();
updatePlayback(); updatePlayback();
} }

View File

@ -23,7 +23,6 @@ import android.widget.PopupMenu;
import android.widget.ProgressBar; import android.widget.ProgressBar;
import android.widget.SeekBar; import android.widget.SeekBar;
import android.widget.TextView; import android.widget.TextView;
import android.widget.Toast;
import com.google.android.exoplayer2.PlaybackParameters; import com.google.android.exoplayer2.PlaybackParameters;
import com.google.android.exoplayer2.Player; import com.google.android.exoplayer2.Player;
@ -453,7 +452,7 @@ public abstract class ServicePlayerActivity extends AppCompatActivity
player.onRepeatClicked(); player.onRepeatClicked();
} else if (view.getId() == muteButton.getId()) { } else if (view.getId() == muteButton.getId()) {
player.onMuteUnmuteButtonClicled(); player.onMuteUnmuteButtonClicked();
} else if (view.getId() == backwardButton.getId()) { } else if (view.getId() == backwardButton.getId()) {
player.onPlayPrevious(); player.onPlayPrevious();