marinofaggiana 6 years ago
parent
commit
1ff659eb1d
2 changed files with 2 additions and 3 deletions
  1. 1 3
      iOSClient/Media/NCMedia.swift
  2. 1 0
      iOSClient/Networking/NCService.swift

+ 1 - 3
iOSClient/Media/NCMedia.swift

@@ -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) {

+ 1 - 0
iOSClient/Networking/NCService.swift

@@ -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()