prepare for uYou v3.0.2+
This commit is contained in:
Bryce Hackel 2024-04-02 19:59:21 -07:00
parent eeb742e779
commit 5da0c7d482
No known key found for this signature in database
GPG key ID: F031960F08455E88

View file

@ -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 {