diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-12-02 20:18:48 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-12-02 20:18:48 +0300 |
commit | 087f2236643a149601170231278673284df44781 (patch) | |
tree | 283b5e2bba1a5dd7bb5cdff8a05a9551e90b7e65 /iOSClient/Recent | |
parent | 5930b47cb35a8fe1f8f48bf49c5156d1c1dcde6f (diff) |
rename sharedInstance to shared
Diffstat (limited to 'iOSClient/Recent')
-rw-r--r-- | iOSClient/Recent/NCRecent.swift | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/iOSClient/Recent/NCRecent.swift b/iOSClient/Recent/NCRecent.swift index 4976a5959..6fbced4ee 100644 --- a/iOSClient/Recent/NCRecent.swift +++ b/iOSClient/Recent/NCRecent.swift @@ -33,7 +33,7 @@ class NCRecent: NCCollectionViewCommon { titleCurrentFolder = NSLocalizedString("_recent_", comment: "") layoutKey = k_layout_view_recent enableSearchBar = false - emptyImage = CCGraphics.changeThemingColorImage(UIImage.init(named: "recent"), width: 300, height: 300, color: NCBrandColor.sharedInstance.brandElement) + emptyImage = CCGraphics.changeThemingColorImage(UIImage.init(named: "recent"), width: 300, height: 300, color: NCBrandColor.shared.brandElement) emptyTitle = "_files_no_files_" emptyDescription = "" } @@ -51,7 +51,7 @@ class NCRecent: NCCollectionViewCommon { DispatchQueue.global().async { - self.metadatasSource = NCManageDatabase.sharedInstance.getAdvancedMetadatas(predicate: NSPredicate(format: "account == %@", self.appDelegate.account), page: 1, limit: 100, sorted: "date", ascending: false) + self.metadatasSource = NCManageDatabase.shared.getAdvancedMetadatas(predicate: NSPredicate(format: "account == %@", self.appDelegate.account), page: 1, limit: 100, sorted: "date", ascending: false) self.dataSource = NCDataSource.init(metadatasSource: self.metadatasSource) DispatchQueue.main.async { @@ -146,15 +146,15 @@ class NCRecent: NCCollectionViewCommon { self.isReloadDataSourceNetworkInProgress = false if errorCode == 0 { - NCManageDatabase.sharedInstance.convertNCCommunicationFilesToMetadatas(files, useMetadataFolder: false, account: account) { (metadataFolder, metadatasFolder, metadatas) in + NCManageDatabase.shared.convertNCCommunicationFilesToMetadatas(files, useMetadataFolder: false, account: account) { (metadataFolder, metadatasFolder, metadatas) in // Update sub directories for metadata in metadatasFolder { let serverUrl = metadata.serverUrl + "/" + metadata.fileName - NCManageDatabase.sharedInstance.addDirectory(encrypted: metadata.e2eEncrypted, favorite: metadata.favorite, ocId: metadata.ocId, fileId: metadata.fileId, etag: nil, permissions: metadata.permissions, serverUrl: serverUrl, richWorkspace: metadata.richWorkspace, account: account) + NCManageDatabase.shared.addDirectory(encrypted: metadata.e2eEncrypted, favorite: metadata.favorite, ocId: metadata.ocId, fileId: metadata.fileId, etag: nil, permissions: metadata.permissions, serverUrl: serverUrl, richWorkspace: metadata.richWorkspace, account: account) } // Add metadatas - NCManageDatabase.sharedInstance.addMetadatas(metadatas) + NCManageDatabase.shared.addMetadatas(metadatas) self.reloadDataSource() } |