Skip to content
This repository was archived by the owner on Jun 19, 2025. It is now read-only.

Commit bceb4f0

Browse files
committed
Don't show the refreshControl if emptyViewController is being displayed.
1 parent d9857c2 commit bceb4f0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Pod/Classes/WPMediaPickerViewController.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -697,7 +697,11 @@ - (void)refreshData
697697

698698
- (void)refreshDataAnimated:(BOOL)animated
699699
{
700-
[self.refreshControl beginRefreshing];
700+
// Don't show the refreshControl if emptyViewController is being displayed.
701+
if (! _emptyViewController) {
702+
[self.refreshControl beginRefreshing];
703+
}
704+
701705
self.collectionView.allowsSelection = NO;
702706
self.collectionView.allowsMultipleSelection = NO;
703707
self.collectionView.scrollEnabled = NO;

0 commit comments

Comments
 (0)