From fbf07cfc96189421ef5b0e940947612bc845367f Mon Sep 17 00:00:00 2001 From: LisoUseInAIKyrios <118716522+LisoUseInAIKyrios@users.noreply.github.com> Date: Sat, 28 Dec 2024 00:05:26 +0400 Subject: [PATCH] fix touch interaction sound when automatically exiting fullscreen --- .../extension/youtube/patches/ExitFullscreenPatch.java | 3 +++ 1 file changed, 3 insertions(+) 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); } }); }