Эх сурвалжийг харах

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 жил өмнө
parent
commit
9b89236116

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

@@ -169,8 +169,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
 
 
         NotificationCenter.default.addObserver(self, selector: #selector(triggerProgressTask(_:)), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterProgressTask), object: nil)
         NotificationCenter.default.addObserver(self, selector: #selector(triggerProgressTask(_:)), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterProgressTask), object: nil)
 
 
-        NotificationCenter.default.addObserver(self, selector: #selector(applicationWillEnterForeground(_:)), name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterApplicationWillEnterForeground), object: nil)
-
         if serverUrl == "" {
         if serverUrl == "" {
             appDelegate.activeServerUrl = NCUtilityFileSystem.shared.getHomeServer(account: appDelegate.account)
             appDelegate.activeServerUrl = NCUtilityFileSystem.shared.getHomeServer(account: appDelegate.account)
         } else {
         } else {
@@ -220,8 +218,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
 
 
         NotificationCenter.default.removeObserver(self, name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterProgressTask), object: nil)
         NotificationCenter.default.removeObserver(self, name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterProgressTask), object: nil)
 
 
-        NotificationCenter.default.removeObserver(self, name: NSNotification.Name(rawValue: NCGlobal.shared.notificationCenterApplicationWillEnterForeground), object: nil)
-
         pushed = false
         pushed = false
 
 
         // REQUEST
         // REQUEST
@@ -341,10 +337,6 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         collectionView.reloadData()
         collectionView.reloadData()
     }
     }
 
 
-    @objc func applicationWillEnterForeground(_ notification: NSNotification) {
-
-    }
-
     @objc func reloadDataSource(_ notification: NSNotification) {
     @objc func reloadDataSource(_ notification: NSNotification) {
 
 
         reloadDataSource()
         reloadDataSource()

+ 0 - 7
iOSClient/Transfers/NCTransfers.swift

@@ -66,13 +66,6 @@ class NCTransfers: NCCollectionViewCommon, NCTransferCellDelegate {
 
 
     // MARK: - NotificationCenter
     // MARK: - NotificationCenter
 
 
-    override func applicationWillEnterForeground(_ notification: NSNotification) {
-
-        layoutKey = NCGlobal.shared.layoutViewTransfers
-        //collectionView?.collectionViewLayout = listLayout
-        //collectionView?.reloadData()
-    }
-
     override func downloadStartFile(_ notification: NSNotification) {
     override func downloadStartFile(_ notification: NSNotification) {
 
 
         reloadDataSource()
         reloadDataSource()