diff --git a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/ExitFullscreenPatch.java b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/ExitFullscreenPatch.java index 02d53fa69..972c2cd92 100644 --- a/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/ExitFullscreenPatch.java +++ b/extensions/youtube/src/main/java/app/revanced/extension/youtube/patches/ExitFullscreenPatch.java @@ -49,7 +49,10 @@ public class ExitFullscreenPatch { Logger.printDebug(() -> "Fullscreen button is null, cannot click"); } else { Logger.printDebug(() -> "Clicking fullscreen button"); + final boolean soundEffectsEnabled = button.isSoundEffectsEnabled(); + button.setSoundEffectsEnabled(false); button.performClick(); + button.setSoundEffectsEnabled(soundEffectsEnabled); } }); }