Skip to content

Commit

Permalink
Merge pull request #15 from grigaci/bugs/fixBatchRequestOptions
Browse files Browse the repository at this point in the history
Fix feed table view batch request with multiple options
  • Loading branch information
grigaci committed Dec 15, 2015
2 parents c6b6327 + 3fde8be commit 69038fc
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions BIObjCHelpers/Datasource/TableView/BIDatasourceFeedTableView.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,17 +109,11 @@ - (void)fetchBatchRequest:(nonnull BIBatchRequest *)batchRequest {
}

- (void)updateTableViewForFetchBatchRequest:(nonnull BIBatchRequest *)batchRequest {
if (batchRequest.isInitialRequest) {
if (batchRequest.isInitialRequest || batchRequest.isInfiniteScrollingRequest) {
self.tableView.BI_pullToRefreshEnabled = NO;
self.fetchingState = BIDatasourceTableViewFetchingStateInfiniteScrolling;
self.tableView.infiniteScrollingState = BIInfiniteScrollingStateLoading;
}
if (batchRequest.isInfiniteScrollingRequest) {
self.tableView.BI_pullToRefreshEnabled = NO;
self.fetchingState = BIDatasourceTableViewFetchingStateInfiniteScrolling;
self.tableView.infiniteScrollingState = BIInfiniteScrollingStateLoading;
}
if (batchRequest.isPullToRefreshRequest) {
} else if (batchRequest.isPullToRefreshRequest) {
self.tableView.BI_infiniteScrollingEnabled = NO;
self.fetchingState = BIDatasourceTableViewFetchingStatePullToRefresh;
[self.tableView.pullToRefreshControl beginRefreshing];
Expand Down

0 comments on commit 69038fc

Please sign in to comment.