1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 08:30:44 +00:00

Better naming

This commit is contained in:
litetex 2022-03-16 15:46:07 +01:00
parent ee5e0e13b7
commit cefb52471f
3 changed files with 5 additions and 5 deletions

View File

@ -3759,14 +3759,14 @@ public final class Player implements
context.sendBroadcast(new Intent(VideoDetailFragment.ACTION_HIDE_MAIN_PLAYER)); 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 * @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) { if (currentState == STATE_COMPLETED) {
return; return;
} }

View File

@ -42,6 +42,6 @@ class PlaybackSpeedClickListener(
player.isSomePopupMenuVisible = true player.isSomePopupMenuVisible = true
} }
player.afterOnClick(v) player.manageControlsAfterOnClick(v)
} }
} }

View File

@ -36,6 +36,6 @@ class QualityClickListener(
} }
player.saveWasPlaying() player.saveWasPlaying()
player.afterOnClick(v) player.manageControlsAfterOnClick(v)
} }
} }