Skip to content

Commit

Permalink
Update NCShareExtension+DataSource.swift
Browse files Browse the repository at this point in the history
NMC 2298 - Empty folder theming change and folder size shown
  • Loading branch information
TSI-amrutwaghmare committed Apr 15, 2024
1 parent 277ade3 commit c03013d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Share/NCShareExtension+DataSource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extension NCShareExtension: UICollectionViewDelegate {
header.emptyTitle.text = NSLocalizedString("_request_in_progress_", comment: "")
header.emptyDescription.text = ""
} else {
header.emptyImage.image = UIImage(named: "folder")?.image(color: NCBrandColor.shared.brandElement, size: UIScreen.main.bounds.width)
header.emptyImage.image = UIImage(named: "folder")
header.emptyTitle.text = NSLocalizedString("_files_no_folders_", comment: "")
header.emptyDescription.text = ""
}
Expand Down Expand Up @@ -160,6 +160,7 @@ extension NCShareExtension: UICollectionViewDataSource {
}

cell.labelInfo.text = utility.dateDiff(metadata.date as Date)
cell.labelSubinfo.text = " · " + utilityFileSystem.transformedSize(metadata.size)

let lockServerUrl = utilityFileSystem.stringAppendServerUrl(metadata.serverUrl, addFileName: metadata.fileName)
let tableDirectory = NCManageDatabase.shared.getTableDirectory(predicate: NSPredicate(format: "account == %@ AND serverUrl == %@", activeAccount.account, lockServerUrl))
Expand Down

0 comments on commit c03013d

Please sign in to comment.