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

+ 2 - 2
iOSClient/Media/NCMedia.swift

@@ -402,7 +402,7 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
         })
     }
     
-    @objc func loadNetworkDatasource() {
+    @objc private func loadNetworkDatasource() {
         
         isDistantPast = false
         readRetry = 0
@@ -425,7 +425,7 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
         self.collectionView?.reloadData()
     }
     
-    func selectSearchSections() {
+    private func selectSearchSections() {
         
         let sections = NSMutableSet()
         let lastDate = NCManageDatabase.sharedInstance.getTableMediaDate(account: self.appDelegate.activeAccount, order: .orderedDescending)

+ 0 - 1
iOSClient/Networking/NCService.swift

@@ -246,7 +246,6 @@ class NCService: NSObject {
                 // Call func thath required the userdID
                 self.appDelegate.activeFavorites.listingFavorites()
                 self.appDelegate.activeMedia.collectionViewReloadDataSource(loadNetworkDatasource: true)
-                self.appDelegate.activeMedia.loadNetworkDatasource()
                 NCFunctionMain.sharedInstance.synchronizeOffline()
                 
                 DispatchQueue.global(qos: .default).async {