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

Commit 28373ec

Browse files
committed
Make clear why do we reload collection view when changing group before syncing data.
1 parent 79d8d44 commit 28373ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Pod/Classes/WPMediaCollectionViewController.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,9 @@ - (void)refreshData
237237
[self.collectionView setContentOffset:CGPointMake(0, - [[self topLayoutGuide] length] - (self.refreshControl.frame.size.height)) animated:YES];
238238
[self.refreshControl beginRefreshing];
239239
}
240+
// NOTE: Sergio Estevao (2015-11-19)
241+
// Clean all assets and refresh collection view when the group was changed
242+
// This avoid to see data from previous group while the new one is loading.
240243
[self.collectionView reloadData];
241244
}
242245
self.collectionView.allowsSelection = NO;

0 commit comments

Comments
 (0)