mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-20 16:27:17 +02:00
chore(YouTube): Simplify debug log
This commit is contained in:
parent
63d88c407b
commit
838bbede71
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user