From 0137e6def926cb1bf8de6fde2ff547a96e4d1852 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 24 Jul 2011 10:19:48 +0000 Subject: [PATCH] Fix icon labels on iOS 4. --- Library.mm | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Library.mm b/Library.mm index e882c25..f3534c2 100644 --- a/Library.mm +++ b/Library.mm @@ -776,6 +776,16 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) { UIDevice *device([UIDevice currentDevice]); IsWild_ = [device respondsToSelector:@selector(isWildcat)] && [device isWildcat]; + if ([Info_ objectForKey:@"UndockedIconLabels"] == nil) + [Info_ setObject:[NSNumber numberWithBool:( + !(Papered_ || GSSystemHasCapability(CFSTR("homescreen-wallpaper"))) || + [Info_ objectForKey:@"DockedIconLabelStyle"] != nil || + [Info_ objectForKey:@"UndockedIconLabelStyle"] != nil + )] forKey:@"UndockedIconLabels"]; + + if (Debug_) + NSLog(@"WB:Debug:Info = %@", [Info_ description]); + if (Papered_) { UIImageView *&_wallpaperView(MSHookIvar(self, "_wallpaperView")); if (&_wallpaperView != NULL) { @@ -1801,15 +1811,5 @@ extern "C" void WBInitialize() { Docked_ = $getTheme$([NSArray arrayWithObjects:@"Dock.png", nil]); - if ([Info_ objectForKey:@"UndockedIconLabels"] == nil) - [Info_ setObject:[NSNumber numberWithBool:( - !Papered_ || - [Info_ objectForKey:@"DockedIconLabelStyle"] != nil || - [Info_ objectForKey:@"UndockedIconLabelStyle"] != nil - )] forKey:@"UndockedIconLabels"]; - - if (Debug_) - NSLog(@"WB:Debug:Info = %@", [Info_ description]); - [pool release]; } -- 2.45.2