marinofaggiana 4 년 전
부모
커밋
39d072bbca
2개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 3
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift
  2. 1 1
      iOSClient/Main/NCFunctionCenter.swift

+ 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)
         }