From: Jay Freeman (saurik) Date: Thu, 9 Jan 2014 02:36:32 +0000 (-0800) Subject: Do not break SpringBoard's search functionality. X-Git-Tag: v0.9.3912~20 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/d1abab1dd15501d6d4ef2dc2ac1b77eeb405beb8?ds=inline Do not break SpringBoard's search functionality. --- diff --git a/Library.mm b/Library.mm index f4b400a..78f9125 100644 --- a/Library.mm +++ b/Library.mm @@ -2152,9 +2152,11 @@ static void SBInitialize() { WBRename(SBIconModel, getCachedImagedForIcon:, getCachedImagedForIcon$); WBRename(SBIconModel, getCachedImagedForIcon:smallIcon:, getCachedImagedForIcon$smallIcon$); - WBRename(SBSearchView, initWithFrame:, initWithFrame$); - WBRename(SBSearchTableViewCell, drawRect:, drawRect$); - WBRename(SBSearchTableViewCell, initWithStyle:reuseIdentifier:, initWithStyle$reuseIdentifier$); + if (kCFCoreFoundationVersionNumber < 800) { + WBRename(SBSearchView, initWithFrame:, initWithFrame$); + WBRename(SBSearchTableViewCell, drawRect:, drawRect$); + WBRename(SBSearchTableViewCell, initWithStyle:reuseIdentifier:, initWithStyle$reuseIdentifier$); + } //WBRename(SBImageCache, initWithName:forImageWidth:imageHeight:initialCapacity:, initWithName$forImageWidth$imageHeight$initialCapacity$);