Skip to content

Commit cefb524

Browse files
committed
Better naming
1 parent ee5e0e1 commit cefb524

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/main/java/org/schabi/newpipe/player/Player.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3759,14 +3759,14 @@ public void onClick(final View v) {
37593759
context.sendBroadcast(new Intent(VideoDetailFragment.ACTION_HIDE_MAIN_PLAYER));
37603760
}
37613761

3762-
afterOnClick(v);
3762+
manageControlsAfterOnClick(v);
37633763
}
37643764

37653765
/**
3766-
* Function that should be executed after a click occured on the player UI.
3766+
* Manages the controls after a click occurred on the player UI.
37673767
* @param v – The view that was clicked
37683768
*/
3769-
public void afterOnClick(@NonNull final View v) {
3769+
public void manageControlsAfterOnClick(@NonNull final View v) {
37703770
if (currentState == STATE_COMPLETED) {
37713771
return;
37723772
}

app/src/main/java/org/schabi/newpipe/player/listeners/view/PlaybackSpeedClickListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ class PlaybackSpeedClickListener(
4242
player.isSomePopupMenuVisible = true
4343
}
4444

45-
player.afterOnClick(v)
45+
player.manageControlsAfterOnClick(v)
4646
}
4747
}

app/src/main/java/org/schabi/newpipe/player/listeners/view/QualityClickListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ class QualityClickListener(
3636
}
3737

3838
player.saveWasPlaying()
39-
player.afterOnClick(v)
39+
player.manageControlsAfterOnClick(v)
4040
}
4141
}

0 commit comments

Comments
 (0)