Browse Source

coding

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
f3245021c6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      iOSClient/Data/NCDataSource.swift
  2. 1 1
      iOSClient/NCGlobal.swift

+ 1 - 1
iOSClient/Data/NCDataSource.swift

@@ -79,7 +79,7 @@ class NCDataSource: NSObject {
 
         self.sectionsValue = metadatasSource.map { getSectionValue(metadata: $0) }
         self.sectionsValue = Array(Set(self.sectionsValue))
-        if let providers = self.providers {
+        if let providers = self.providers , !providers.isEmpty {
             var sectionsDictionary: [String:Int] = [:]
             for section in self.sectionsValue {
                 if let provider = providers.filter({ $0.name.lowercased() == section.lowercased()}).first {

+ 1 - 1
iOSClient/NCGlobal.swift

@@ -184,7 +184,7 @@ class NCGlobal: NSObject {
     // Standard height sections header/footer
     let heightButtonsCommand: CGFloat               = 50
     let heightButtonsView: CGFloat                  = 50
-    let heightSection: CGFloat                      = 20
+    let heightSection: CGFloat                      = 30
     let heightFooter: CGFloat                       = 1
     let endHeightFooter: CGFloat                    = 85