summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Petrich <rpetrich@gmail.com>2010-09-23 01:56:48 -0600
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 10:42:38 +0000
commit904e4273c51ff61a884ce6c04855c4a6335bf2d6 (patch)
tree404435f54a1449508dfecbd0e9ad37abd634e129
parent8779218acb9a28a38d6f53c7f40fdc59fd66ec4e (diff)
White background the first time Changes is loaded
-rw-r--r--Cydia.mm9
1 files changed, 7 insertions, 2 deletions
diff --git a/Cydia.mm b/Cydia.mm
index c9254f4..38ba04e 100644
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -6934,6 +6934,7 @@ freeing the view controllers on tab change */
NSMutableArray *sections_;
UITableView *list_;
unsigned upgrades_;
+ BOOL hasSentFirstLoad_;
}
- (id) initWithDatabase:(Database *)database delegate:(id)delegate;
@@ -6955,7 +6956,12 @@ freeing the view controllers on tab change */
- (void) viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
- [list_ deselectRowAtIndexPath:[list_ indexPathForSelectedRow] animated:animated];
+ if (!hasSentFirstLoad_) {
+ hasSentFirstLoad_ = YES;
+ [self performSelector:@selector(reloadData) withObject:nil afterDelay:0.0];
+ } else {
+ [list_ deselectRowAtIndexPath:[list_ indexPathForSelectedRow] animated:animated];
+ }
}
- (NSInteger) numberOfSectionsInTableView:(UITableView *)list {
@@ -7030,7 +7036,6 @@ freeing the view controllers on tab change */
[list_ setDelegate:self];
delegate_ = delegate;
- [self reloadData];
} return self;
}