From a6fcb70d1275e8a1fbc3f712b9152233b1fe8bb1 Mon Sep 17 00:00:00 2001 From: karol Date: Sun, 1 Mar 2020 16:42:46 +0100 Subject: [PATCH] fix typo --- .../java/org/schabi/newpipe/player/BackgroundPlayer.java | 4 ++-- app/src/main/java/org/schabi/newpipe/player/BasePlayer.java | 2 +- .../java/org/schabi/newpipe/player/MainVideoPlayer.java | 6 +++--- .../java/org/schabi/newpipe/player/PopupVideoPlayer.java | 4 ++-- .../org/schabi/newpipe/player/ServicePlayerActivity.java | 3 +-- 5 files changed, 9 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java b/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java index b020f234b..dbf27ea7c 100644 --- a/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/BackgroundPlayer.java @@ -397,8 +397,8 @@ public final class BackgroundPlayer extends Service { } @Override - public void onMuteUnmuteButtonClicled() { - super.onMuteUnmuteButtonClicled(); + public void onMuteUnmuteButtonClicked() { + super.onMuteUnmuteButtonClicked(); updatePlayback(); } diff --git a/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java b/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java index ce2f94e0d..adffefa6e 100644 --- a/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/BasePlayer.java @@ -542,7 +542,7 @@ public abstract class BasePlayer implements // Mute / Unmute //////////////////////////////////////////////////////////////////////////*/ - public void onMuteUnmuteButtonClicled() { + public void onMuteUnmuteButtonClicked() { if (DEBUG) Log.d(TAG, "onMuteUnmuteButtonClicled() called"); simpleExoPlayer.setVolume(isMuted() ? 1 : 0); } diff --git a/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java b/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java index cad165ab6..63d95e74f 100644 --- a/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java @@ -693,8 +693,8 @@ public final class MainVideoPlayer extends AppCompatActivity } @Override - public void onMuteUnmuteButtonClicled() { - super.onMuteUnmuteButtonClicled(); + public void onMuteUnmuteButtonClicked() { + super.onMuteUnmuteButtonClicked(); setMuteButton(muteButton, playerImpl.isMuted()); } @@ -736,7 +736,7 @@ public final class MainVideoPlayer extends AppCompatActivity onPlayBackgroundButtonClicked(); } else if (v.getId() == muteButton.getId()) { - onMuteUnmuteButtonClicled(); + onMuteUnmuteButtonClicked(); } else if (v.getId() == closeButton.getId()) { onPlaybackShutdown(); diff --git a/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java b/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java index ff35aecb9..b7638eda7 100644 --- a/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/PopupVideoPlayer.java @@ -609,8 +609,8 @@ public final class PopupVideoPlayer extends Service { } @Override - public void onMuteUnmuteButtonClicled() { - super.onMuteUnmuteButtonClicled(); + public void onMuteUnmuteButtonClicked() { + super.onMuteUnmuteButtonClicked(); updatePlayback(); } diff --git a/app/src/main/java/org/schabi/newpipe/player/ServicePlayerActivity.java b/app/src/main/java/org/schabi/newpipe/player/ServicePlayerActivity.java index bb5593f09..c0a8d2bfd 100644 --- a/app/src/main/java/org/schabi/newpipe/player/ServicePlayerActivity.java +++ b/app/src/main/java/org/schabi/newpipe/player/ServicePlayerActivity.java @@ -23,7 +23,6 @@ import android.widget.PopupMenu; import android.widget.ProgressBar; import android.widget.SeekBar; import android.widget.TextView; -import android.widget.Toast; import com.google.android.exoplayer2.PlaybackParameters; import com.google.android.exoplayer2.Player; @@ -453,7 +452,7 @@ public abstract class ServicePlayerActivity extends AppCompatActivity player.onRepeatClicked(); } else if (view.getId() == muteButton.getId()) { - player.onMuteUnmuteButtonClicled(); + player.onMuteUnmuteButtonClicked(); } else if (view.getId() == backwardButton.getId()) { player.onPlayPrevious();