|
@@ -40,6 +40,19 @@ class NCTransfers: NCCollectionViewCommon {
|
|
|
DZNdescription = "_no_transfer_sub_"
|
|
|
}
|
|
|
|
|
|
+ override func viewWillAppear(_ animated: Bool) {
|
|
|
+
|
|
|
+ appDelegate.activeViewController = self
|
|
|
+
|
|
|
+ collectionView?.collectionViewLayout = listLayout
|
|
|
+
|
|
|
+ self.navigationItem.title = titleCurrentFolder
|
|
|
+
|
|
|
+ setNavigationItem()
|
|
|
+
|
|
|
+ reloadDataSource()
|
|
|
+ }
|
|
|
+
|
|
|
override func setNavigationItem() {
|
|
|
self.navigationItem.rightBarButtonItem = nil
|
|
|
self.navigationItem.leftBarButtonItem = nil
|
|
@@ -199,6 +212,14 @@ class NCTransfers: NCCollectionViewCommon {
|
|
|
return CGSize(width: collectionView.frame.width, height: 0)
|
|
|
}
|
|
|
|
|
|
+ override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
|
|
|
+ let cell = super.collectionView(collectionView, cellForItemAt: indexPath)
|
|
|
+ if cell is NCListCell {
|
|
|
+ (cell as! NCListCell).hideButtonShare(true)
|
|
|
+ }
|
|
|
+ return cell
|
|
|
+ }
|
|
|
+
|
|
|
// MARK: - DataSource + NC Endpoint
|
|
|
|
|
|
override func reloadDataSource() {
|