diff options
author | marinofaggiana <marino@marinofaggiana.com> | 2020-10-02 16:10:52 +0300 |
---|---|---|
committer | marinofaggiana <marino@marinofaggiana.com> | 2020-10-02 16:10:52 +0300 |
commit | 50e63bb47abe51c9d59a933559b6c747165f0adb (patch) | |
tree | 060c60a8a55f4d663f5192f825160adbfba8510e /iOSClient | |
parent | 33cd14dd7950d1ce76e582610493aeee7221da78 (diff) |
coding
Diffstat (limited to 'iOSClient')
-rw-r--r-- | iOSClient/Main/NCCollectionViewCommon.swift | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/iOSClient/Main/NCCollectionViewCommon.swift b/iOSClient/Main/NCCollectionViewCommon.swift index c0d3cf265..fcc8df901 100644 --- a/iOSClient/Main/NCCollectionViewCommon.swift +++ b/iOSClient/Main/NCCollectionViewCommon.swift @@ -205,9 +205,11 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS if isEditMode { self.navigationItem.rightBarButtonItem = UIBarButtonItem(image: UIImage.init(named: "navigationMore"), style: .plain, target: self, action:#selector(tapSelectMenu(sender:))) self.navigationItem.leftBarButtonItem = UIBarButtonItem(title: NSLocalizedString("_cancel_", comment: ""), style: .plain, target: self, action: #selector(tapSelect(sender:))) + self.navigationItem.title = NSLocalizedString("_selected_", comment: "") + " : \(selectOcId.count)" + " / \(dataSource.metadatas.count)" } else { self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: NSLocalizedString("_select_", comment: ""), style: UIBarButtonItem.Style.plain, target: self, action: #selector(tapSelect(sender:))) self.navigationItem.leftBarButtonItem = nil + self.navigationItem.title = titleCurrentFolder } } @@ -1065,6 +1067,7 @@ extension NCCollectionViewCommon: UICollectionViewDelegate { selectOcId.append(metadata.ocId) } collectionView.reloadItems(at: [indexPath]) + self.navigationItem.title = NSLocalizedString("_selected_", comment: "") + " : \(selectOcId.count)" + " / \(dataSource.metadatas.count)" return } |