marinofaggiana 4 years ago
parent
commit
d8eb377ce0
1 changed files with 6 additions and 2 deletions
  1. 6 2
      iOSClient/FileViewInFolder/NCFileViewInFolder.swift

+ 6 - 2
iOSClient/FileViewInFolder/NCFileViewInFolder.swift

@@ -42,8 +42,12 @@ class NCFileViewInFolder: NCCollectionViewCommon  {
     
     override func viewWillAppear(_ animated: Bool) {
                 
-        self.navigationItem.title = CCUtility.getLastPath(fromServerUrl: serverUrl, urlBase: appDelegate.urlBase)
-                
+        if serverUrl == NCUtility.shared.getHomeServer(urlBase: appDelegate.urlBase, account: appDelegate.account) {
+            self.navigationItem.title = NCBrandOptions.sharedInstance.brand
+        } else {
+            self.navigationItem.title = CCUtility.getLastPath(fromServerUrl: serverUrl, urlBase: appDelegate.urlBase)
+        }
+        
         (layout, _, _, groupBy, _, titleButton, itemForLine) = NCUtility.shared.getLayoutForView(key: layoutKey, serverUrl: serverUrl)
         gridLayout.itemForLine = CGFloat(itemForLine)