From 5da0c7d482bb8c76bd6aa88a9e080c7a8f4595be Mon Sep 17 00:00:00 2001 From: Bryce Hackel <34104885+bhackel@users.noreply.github.com> Date: Tue, 2 Apr 2024 19:59:21 -0700 Subject: [PATCH] Commit b9d1826c99c748bb03a0995a089e404ac16f6ade prepare for uYou v3.0.2+ --- Sources/uYouPlus.xm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Sources/uYouPlus.xm b/Sources/uYouPlus.xm index d81c284..f8eb7ac 100644 --- a/Sources/uYouPlus.xm +++ b/Sources/uYouPlus.xm @@ -560,11 +560,13 @@ BOOL isAd(YTIElementRenderer *self) { // YTStockVolumeHUD - https://github.com/lilacvibes/YTStockVolumeHUD %group gStockVolumeHUD -%hook YTVolumeBarView -- (void)volumeChanged:(id)arg1 { - %orig(nil); +// Use YTColdConfig's method instead of YTStockVolumeHUD.xm, see https://x.com/PoomSmart/status/1756904290445332653 +%hook YTColdConfig +- (BOOL)iosUseSystemVolumeControlInFullscreen { + return IS_ENABLED(@"stockVolumeHUD_enabled") ? YES : %orig; } %end +%end %hook UIApplication - (void)setSystemVolumeHUDEnabled:(BOOL)arg1 forAudioCategory:(id)arg2 {