Workaround for iOS 15 uYou settings bug (#10)
This commit is contained in:
@@ -30,6 +30,9 @@
|
|||||||
@interface FRPSliderCell : UITableViewCell
|
@interface FRPSliderCell : UITableViewCell
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface boolSettingsVC : UIViewController
|
||||||
|
@end
|
||||||
|
|
||||||
// iOS16 fix
|
// iOS16 fix
|
||||||
@interface OBPrivacyLinkButton : UIButton
|
@interface OBPrivacyLinkButton : UIButton
|
||||||
- (instancetype)initWithCaption:(NSString *)caption
|
- (instancetype)initWithCaption:(NSString *)caption
|
||||||
|
|||||||
+10
@@ -222,6 +222,16 @@ BOOL hidePaidPromotionCard() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Workaround for qnblackcat/uYouPlus#10
|
||||||
|
%hook boolSettingsVC
|
||||||
|
- (instancetype)initWithTitle:(NSString *)title sections:(NSArray *)sections footer:(NSString *)footer {
|
||||||
|
if (@available(iOS 15, *))
|
||||||
|
if (![self valueForKey:@"_lastNotifiedTraitCollection"])
|
||||||
|
[self setValue:[UITraitCollection currentTraitCollection] forKey:@"_lastNotifiedTraitCollection"];
|
||||||
|
return %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
|
// YTClassicVideoQuality: https://github.com/PoomSmart/YTClassicVideoQuality
|
||||||
%hook YTVideoQualitySwitchControllerFactory
|
%hook YTVideoQualitySwitchControllerFactory
|
||||||
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder {
|
- (id)videoQualitySwitchControllerWithParentResponder:(id)responder {
|
||||||
|
|||||||
Reference in New Issue
Block a user