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 {