marinofaggiana 3 years ago
parent
commit
deee302d7c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 4 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -610,7 +610,10 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
             collectionView?.collectionViewLayout = gridLayout
         }
         
-        if fillBackgroud != "" {
+        if fillBackgroud == "" {
+            backgroundImageView.image = nil
+            collectionView.backgroundView = nil
+        } else {
             let imagePath = CCUtility.getDirectoryGroup().appendingPathComponent(NCGlobal.shared.appBackground).path + "/" + fillBackgroud
             do {
                 let data = try Data.init(contentsOf: URL(fileURLWithPath: imagePath))