mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-20 13:25:48 +00:00
Cleaning up a bit.
This commit is contained in:
parent
59bf1577bf
commit
73a6e74b6d
1 changed files with 148 additions and 151 deletions
|
@ -422,11 +422,10 @@
|
||||||
|
|
||||||
- (void)fetchFeedDetail:(int)page withCallback:(void(^)())callback {
|
- (void)fetchFeedDetail:(int)page withCallback:(void(^)())callback {
|
||||||
NSString *theFeedDetailURL;
|
NSString *theFeedDetailURL;
|
||||||
NSLog(@"Fetch Feed in view: %@ (%@)", self, storiesCollection);
|
|
||||||
|
|
||||||
if (!storiesCollection.activeFeed) return;
|
if (!storiesCollection.activeFeed) return;
|
||||||
|
|
||||||
if (callback || (!self.pageFetching && !self.pageFinished)) {
|
if (!callback && (self.pageFetching || self.pageFinished)) return;
|
||||||
|
|
||||||
self.feedPage = page;
|
self.feedPage = page;
|
||||||
self.pageFetching = YES;
|
self.pageFetching = YES;
|
||||||
|
@ -501,7 +500,6 @@
|
||||||
[request startAsynchronous];
|
[request startAsynchronous];
|
||||||
[requests addObject:request];
|
[requests addObject:request];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
- (void)loadOfflineStories {
|
- (void)loadOfflineStories {
|
||||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,
|
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,
|
||||||
|
@ -602,8 +600,8 @@
|
||||||
#pragma mark River of News
|
#pragma mark River of News
|
||||||
|
|
||||||
- (void)fetchRiverPage:(int)page withCallback:(void(^)())callback {
|
- (void)fetchRiverPage:(int)page withCallback:(void(^)())callback {
|
||||||
NSLog(@"Fetch River in view: %@ (%@)", self, storiesCollection);
|
if (self.pageFetching || self.pageFinished) return;
|
||||||
if (!self.pageFetching && !self.pageFinished) {
|
|
||||||
self.feedPage = page;
|
self.feedPage = page;
|
||||||
self.pageFetching = YES;
|
self.pageFetching = YES;
|
||||||
NSInteger storyCount = storiesCollection.storyCount;
|
NSInteger storyCount = storiesCollection.storyCount;
|
||||||
|
@ -690,7 +688,6 @@
|
||||||
[request setTimeOutSeconds:30];
|
[request setTimeOutSeconds:30];
|
||||||
[request startAsynchronous];
|
[request startAsynchronous];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
#pragma mark Processing Stories
|
#pragma mark Processing Stories
|
||||||
|
|
Loading…
Add table
Reference in a new issue