]> git.saurik.com Git - cydia.git/commitdiff
Don't cause the package view to keep bouncing horribly.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 05:48:32 +0000 (21:48 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 19 Feb 2011 05:48:32 +0000 (21:48 -0800)
MobileCydia.mm

index 87c0b6e259d746f82d01f227686d588e5ad50925..25b3a7ed6de0e4c8068344e63b3c04f68aff9a88 100644 (file)
@@ -5828,12 +5828,11 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
         database_ = database;
         buttons_ = [[NSMutableArray alloc] initWithCapacity:4];
         name_ = [[NSString alloc] initWithString:name];
+        [self setURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/package/#!/%@", UI_, name_]]];
     } return self;
 }
 
 - (void) reloadData {
-    [super reloadData];
-
     if (package_ != nil)
         [package_ autorelease];
     package_ = [database_ packageWithName:name_];
@@ -5876,7 +5875,7 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
         action:@selector(customButtonClicked)
     ];
 
-    [self loadURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@/package/#!/%@", UI_, name_]]];
+    [super reloadData];
 }
 
 - (bool) isLoading {