]> git.saurik.com Git - cydget.git/commitdiff
Support background-only configurations on old iOS.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 24 Jan 2014 13:27:32 +0000 (05:27 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 24 Jan 2014 13:49:03 +0000 (05:49 -0800)
LockScreen.mm

index b845093a7cd5a94529354aaec76446d73009f1fa..c039c095f91ebe22d063575c9fb05bb3d4a9d290 100644 (file)
@@ -1135,11 +1135,15 @@ static void $UIWebViewWebViewDelegate$webView$didClearWindowObject$forFrame$(UIW
 }
 
 - (void) loadView {
-    if (NSString *homepage = [configuration_ objectForKey:@"Homepage"])
-        [self setView:[[[WebCydgetLockScreenView alloc] initWithURL:[NSURL URLWithString:homepage]] autorelease]];
-
     if (NSString *background = [configuration_ objectForKey:@"Background"])
         background_ = [[WebCydgetLockScreenView alloc] initWithURL:[NSURL URLWithString:background]];
+
+    if (NSString *homepage = [configuration_ objectForKey:@"Homepage"])
+        [self setView:[[[WebCydgetLockScreenView alloc] initWithURL:[NSURL URLWithString:homepage]] autorelease]];
+    else if (kCFCoreFoundationVersionNumber < 800 && background_ != nil) {
+        [self setView:[background_ autorelease]];
+        background_ = nil;
+    }
 }
 
 - (void) purgeView {