mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-06-12 21:27:43 +02:00
chore(YouTube): Simplify debug log
This commit is contained in:
@ -8,12 +8,11 @@ public class PlaybackSpeedWhilePlayingPatch {
|
||||
private static final float DEFAULT_YOUTUBE_PLAYBACK_SPEED = 1.0f;
|
||||
|
||||
public static boolean playbackSpeedChanged(float playbackSpeed) {
|
||||
PlayerType playerType = PlayerType.getCurrent();
|
||||
if (playbackSpeed == DEFAULT_YOUTUBE_PLAYBACK_SPEED &&
|
||||
PlayerType.getCurrent().isMaximizedOrFullscreenOrPiP()) {
|
||||
playerType.isMaximizedOrFullscreenOrPiP()) {
|
||||
|
||||
Logger.printDebug(() -> "Even though playback has already started and the user has not changed the playback speed, " +
|
||||
"the app attempts to change the playback speed to 1.0x." +
|
||||
"\nIgnore changing playback speed, as it is invalid request.");
|
||||
Logger.printDebug(() -> "Ignore changing playback speed, as it is invalid request: " + playerType.name());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user