marinofaggiana 3 years ago
parent
commit
39d072bbca

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

@@ -619,9 +619,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
                     backgroundImageView.contentMode = .scaleToFill
                     collectionView.backgroundView = backgroundImageView
                 }
-            } catch {
-                print("error")
-            }
+            } catch { }
         }
     }
 

+ 1 - 1
iOSClient/Main/NCFunctionCenter.swift

@@ -619,7 +619,7 @@ import NCCommunication
             children.insert(viewInFolder, at: 5)
         }
         
-        if metadata.typeFile == NCGlobal.shared.metadataTypeFileImage {
+        if metadata.typeFile == NCGlobal.shared.metadataTypeFileImage && viewController is NCCollectionViewCommon {
             children.insert(saveBackground, at: children.count-1)
         }