@@ -97,9 +97,7 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
// empty Data Source
collectionView.emptyDataSetDelegate = self;
collectionView.emptyDataSetSource = self;
-
- // reload Data Source
- collectionViewReloadDataSource()
+ collectionView.reloadData()
}
override func viewWillAppear(_ animated: Bool) {
@@ -245,6 +245,7 @@ class NCService: NSObject {
// Call func thath required the userdID
self.appDelegate.activeFavorites.listingFavorites()
+ self.appDelegate.activeMedia.collectionViewReloadDataSource()
self.appDelegate.activeMedia.loadDatasource()
NCFunctionMain.sharedInstance.synchronizeOffline()