Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
8621168f7f

+ 0 - 6
iOSClient/Favorites/NCFavorite.swift

@@ -42,12 +42,6 @@ class NCFavorite: NCCollectionViewCommon {
         emptyDescription = "_tutorial_favorite_view_"
         emptyDescription = "_tutorial_favorite_view_"
     }
     }
 
 
-    override func viewDidAppear(_ animated: Bool) {
-        super.viewDidAppear(animated)
-
-        reloadDataSourceNetwork()
-    }
-
     // MARK: - DataSource + NC Endpoint
     // MARK: - DataSource + NC Endpoint
 
 
     override func reloadDataSource(forced: Bool = true) {
     override func reloadDataSource(forced: Bool = true) {

+ 1 - 4
iOSClient/Files/NCFiles.swift

@@ -50,10 +50,7 @@ class NCFiles: NCCollectionViewCommon {
 
 
         if isRoot {
         if isRoot {
             titleCurrentFolder = getNavigationTitle()
             titleCurrentFolder = getNavigationTitle()
-            reloadDataSource()
         }
         }
-
-        reloadDataSourceNetwork()
     }
     }
 
 
     // MARK: - NotificationCenter
     // MARK: - NotificationCenter
@@ -63,7 +60,7 @@ class NCFiles: NCCollectionViewCommon {
         if isRoot {
         if isRoot {
             serverUrl = NCUtilityFileSystem.shared.getHomeServer(account: appDelegate.account)
             serverUrl = NCUtilityFileSystem.shared.getHomeServer(account: appDelegate.account)
             titleCurrentFolder = getNavigationTitle()
             titleCurrentFolder = getNavigationTitle()
-            reloadDataSource()
+            reloadDataSource(forced: false)
             reloadDataSourceNetwork()
             reloadDataSourceNetwork()
         }
         }
 
 

+ 1 - 0
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -186,6 +186,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         setNavigationItem()
         setNavigationItem()
 
 
         reloadDataSource(forced: false)
         reloadDataSource(forced: false)
+        reloadDataSourceNetwork()
     }
     }
 
 
     override func viewWillDisappear(_ animated: Bool) {
     override func viewWillDisappear(_ animated: Bool) {

+ 0 - 6
iOSClient/Offline/NCOffline.swift

@@ -42,12 +42,6 @@ class NCOffline: NCCollectionViewCommon {
         emptyDescription = "_tutorial_offline_view_"
         emptyDescription = "_tutorial_offline_view_"
     }
     }
 
 
-    override func viewDidAppear(_ animated: Bool) {
-        super.viewDidAppear(animated)
-
-        reloadDataSourceNetwork()
-    }
-
     // MARK: - DataSource + NC Endpoint
     // MARK: - DataSource + NC Endpoint
 
 
     override func reloadDataSource(forced: Bool = true) {
     override func reloadDataSource(forced: Bool = true) {

+ 0 - 6
iOSClient/Recent/NCRecent.swift

@@ -42,12 +42,6 @@ class NCRecent: NCCollectionViewCommon {
         emptyDescription = ""
         emptyDescription = ""
     }
     }
 
 
-    override func viewDidAppear(_ animated: Bool) {
-        super.viewDidAppear(animated)
-
-        reloadDataSourceNetwork()
-    }
-
     // MARK: - DataSource + NC Endpoint
     // MARK: - DataSource + NC Endpoint
 
 
     override func reloadDataSource(forced: Bool = true) {
     override func reloadDataSource(forced: Bool = true) {

+ 0 - 6
iOSClient/Shares/NCShares.swift

@@ -42,12 +42,6 @@ class NCShares: NCCollectionViewCommon {
         emptyDescription = "_tutorial_list_shares_view_"
         emptyDescription = "_tutorial_list_shares_view_"
     }
     }
 
 
-    override func viewDidAppear(_ animated: Bool) {
-        super.viewDidAppear(animated)
-
-        reloadDataSourceNetwork()
-    }
-
     // MARK: - DataSource + NC Endpoint
     // MARK: - DataSource + NC Endpoint
 
 
     override func reloadDataSource(forced: Bool = true) {
     override func reloadDataSource(forced: Bool = true) {

+ 0 - 6
iOSClient/Transfers/NCTransfers.swift

@@ -52,12 +52,6 @@ class NCTransfers: NCCollectionViewCommon, NCTransferCellDelegate {
         self.navigationItem.title = titleCurrentFolder
         self.navigationItem.title = titleCurrentFolder
     }
     }
 
 
-    override func viewDidAppear(_ animated: Bool) {
-        super.viewDidAppear(animated)
-
-        reloadDataSourceNetwork()
-    }
-
     override func setNavigationItem() {
     override func setNavigationItem() {
         self.navigationItem.rightBarButtonItem = nil
         self.navigationItem.rightBarButtonItem = nil
         self.navigationItem.leftBarButtonItem = nil
         self.navigationItem.leftBarButtonItem = nil