Merge pull request #929 from dayanch96/patch-1
prevent app crash for jailbroken devices
This commit is contained in:
@@ -32,6 +32,12 @@ extern NSBundle *uYouPlusBundle();
|
|||||||
}
|
}
|
||||||
%end
|
%end
|
||||||
|
|
||||||
|
%hook YTSettingsSectionController
|
||||||
|
- (void)setSelectedItem:(NSUInteger)selectedItem {
|
||||||
|
if (selectedItem != NSNotFound) %orig;
|
||||||
|
}
|
||||||
|
%end
|
||||||
|
|
||||||
%hook YTSettingsSectionItemManager
|
%hook YTSettingsSectionItemManager
|
||||||
%new(v@:@)
|
%new(v@:@)
|
||||||
- (void)updateTweakSectionWithEntry:(id)entry {
|
- (void)updateTweakSectionWithEntry:(id)entry {
|
||||||
|
|||||||
Reference in New Issue
Block a user