Fix uYou theme bug (#617)
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#import "Tweaks/YouTubeHeader/YTAppDelegate.h"
|
||||||
#import "Tweaks/YouTubeHeader/YTPlayerViewController.h"
|
#import "Tweaks/YouTubeHeader/YTPlayerViewController.h"
|
||||||
|
|
||||||
#define LOC(x) [tweakBundle localizedStringForKey:x value:nil table:nil]
|
#define LOC(x) [tweakBundle localizedStringForKey:x value:nil table:nil]
|
||||||
@@ -101,6 +102,12 @@ void center();
|
|||||||
- (id)activeVideo;
|
- (id)activeVideo;
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
// uYou theme fix
|
||||||
|
@interface YTAppDelegate ()
|
||||||
|
@property(nonatomic, strong) id downloadsVC;
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
||||||
// BigYTMiniPlayer
|
// BigYTMiniPlayer
|
||||||
@interface YTMainAppVideoPlayerOverlayView : UIView
|
@interface YTMainAppVideoPlayerOverlayView : UIView
|
||||||
- (UIViewController *)_viewControllerForAncestor;
|
- (UIViewController *)_viewControllerForAncestor;
|
||||||
|
|||||||
+18
@@ -1101,6 +1101,24 @@ void center() {
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
// Workaround for qnblackcat/uYouPlus#617
|
||||||
|
static BOOL didFinishLaunching;
|
||||||
|
|
||||||
|
%hook YTAppDelegate
|
||||||
|
- (BOOL)application:(UIApplication *)application
|
||||||
|
didFinishLaunchingWithOptions:(NSDictionary<UIApplicationLaunchOptionsKey, id> *)launchOptions {
|
||||||
|
didFinishLaunching = %orig;
|
||||||
|
self.downloadsVC = [self.downloadsVC init];
|
||||||
|
return didFinishLaunching;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
|
%hook DownloadsPagerVC
|
||||||
|
- (instancetype)init {
|
||||||
|
return didFinishLaunching ? %orig : self;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
// iOS 16 uYou crash fix - @level3tjg: https://github.com/qnblackcat/uYouPlus/pull/224
|
// iOS 16 uYou crash fix - @level3tjg: https://github.com/qnblackcat/uYouPlus/pull/224
|
||||||
%group iOS16
|
%group iOS16
|
||||||
%hook OBPrivacyLinkButton
|
%hook OBPrivacyLinkButton
|
||||||
|
|||||||
Reference in New Issue
Block a user