mirror of
https://github.com/revanced/revanced-patches
synced 2024-12-30 21:05:49 +01:00
fix touch interaction sound when automatically exiting fullscreen
This commit is contained in:
parent
53e93da938
commit
fbf07cfc96
@ -49,7 +49,10 @@ public class ExitFullscreenPatch {
|
|||||||
Logger.printDebug(() -> "Fullscreen button is null, cannot click");
|
Logger.printDebug(() -> "Fullscreen button is null, cannot click");
|
||||||
} else {
|
} else {
|
||||||
Logger.printDebug(() -> "Clicking fullscreen button");
|
Logger.printDebug(() -> "Clicking fullscreen button");
|
||||||
|
final boolean soundEffectsEnabled = button.isSoundEffectsEnabled();
|
||||||
|
button.setSoundEffectsEnabled(false);
|
||||||
button.performClick();
|
button.performClick();
|
||||||
|
button.setSoundEffectsEnabled(soundEffectsEnabled);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user