From cefb52471fcfdb7ab027ea30a6562de3c5b40e7c Mon Sep 17 00:00:00 2001 From: litetex <40789489+litetex@users.noreply.github.com> Date: Wed, 16 Mar 2022 15:46:07 +0100 Subject: [PATCH] Better naming --- app/src/main/java/org/schabi/newpipe/player/Player.java | 6 +++--- .../player/listeners/view/PlaybackSpeedClickListener.kt | 2 +- .../newpipe/player/listeners/view/QualityClickListener.kt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/Player.java b/app/src/main/java/org/schabi/newpipe/player/Player.java index e8d6cff18..76f7a8101 100644 --- a/app/src/main/java/org/schabi/newpipe/player/Player.java +++ b/app/src/main/java/org/schabi/newpipe/player/Player.java @@ -3759,14 +3759,14 @@ public final class Player implements context.sendBroadcast(new Intent(VideoDetailFragment.ACTION_HIDE_MAIN_PLAYER)); } - afterOnClick(v); + manageControlsAfterOnClick(v); } /** - * Function that should be executed after a click occured on the player UI. + * Manages the controls after a click occurred on the player UI. * @param v – The view that was clicked */ - public void afterOnClick(@NonNull final View v) { + public void manageControlsAfterOnClick(@NonNull final View v) { if (currentState == STATE_COMPLETED) { return; } diff --git a/app/src/main/java/org/schabi/newpipe/player/listeners/view/PlaybackSpeedClickListener.kt b/app/src/main/java/org/schabi/newpipe/player/listeners/view/PlaybackSpeedClickListener.kt index b256b084a..fe4984c7c 100644 --- a/app/src/main/java/org/schabi/newpipe/player/listeners/view/PlaybackSpeedClickListener.kt +++ b/app/src/main/java/org/schabi/newpipe/player/listeners/view/PlaybackSpeedClickListener.kt @@ -42,6 +42,6 @@ class PlaybackSpeedClickListener( player.isSomePopupMenuVisible = true } - player.afterOnClick(v) + player.manageControlsAfterOnClick(v) } } diff --git a/app/src/main/java/org/schabi/newpipe/player/listeners/view/QualityClickListener.kt b/app/src/main/java/org/schabi/newpipe/player/listeners/view/QualityClickListener.kt index 17a77dc78..432fc79ae 100644 --- a/app/src/main/java/org/schabi/newpipe/player/listeners/view/QualityClickListener.kt +++ b/app/src/main/java/org/schabi/newpipe/player/listeners/view/QualityClickListener.kt @@ -36,6 +36,6 @@ class QualityClickListener( } player.saveWasPlaying() - player.afterOnClick(v) + player.manageControlsAfterOnClick(v) } }