mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Fix Settings crash
This commit is contained in:
parent
13a812f831
commit
d53fd589be
1 changed files with 4 additions and 1 deletions
|
|
@ -472,7 +472,10 @@ extern NSBundle *uYouPlusBundle();
|
|||
LOC(@"HIDE_FULLSCREEN_ACTION_BUTTONS_DESC"),
|
||||
@"hideFullscreenActions_enabled",
|
||||
({
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad && [[[UIApplication sharedApplication] valueForKey:@"shortVersionString"] compare:@"19.22.6" options:NSNumericSearch] != NSOrderedAscending) {
|
||||
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
|
||||
Class YTVersionUtilsClass = %c(YTVersionUtils);
|
||||
NSString *appVersion = [YTVersionUtilsClass performSelector:@selector(appVersion)];
|
||||
NSComparisonResult result = [appVersion compare:@"19.22.6" options:NSNumericSearch];
|
||||
[[NSUserDefaults standardUserDefaults] setBool:enable forKey:@"hideFullscreenActions_enabled"];
|
||||
SHOW_RELAUNCH_YT_SNACKBAR;
|
||||
return YES;
|
||||
|
|
|
|||
Loading…
Reference in a new issue