fix touch interaction sound when automatically exiting fullscreen

This commit is contained in:
LisoUseInAIKyrios 2024-12-28 00:05:26 +04:00
parent 53e93da938
commit fbf07cfc96

View File

@ -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);
}
});
}