Marino Faggiana 1 년 전
부모
커밋
4c5d9daa8f
2개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      ExternalResources/NCApplicationHandle.swift
  2. 2 0
      iOSClient/Main/NCActionCenter.swift

+ 5 - 0
ExternalResources/NCApplicationHandle.swift

@@ -73,4 +73,9 @@ class NCApplicationHandle: NSObject {
     func pagingViewController(_: PagingViewController, pagingItemAt index: Int) -> PagingItem {
         return PagingIndexItem(index: index, title: "")
     }
+
+    // class: NCActionCenter
+    func filterPages(pages: [NCBrandOptions.NCInfoPagingTab]) -> [NCBrandOptions.NCInfoPagingTab] {
+        return pages
+    }
 }

+ 2 - 0
iOSClient/Main/NCActionCenter.swift

@@ -222,6 +222,8 @@ class NCActionCenter: NSObject, UIDocumentInteractionControllerDelegate, NCSelec
                 shareViewController?.metadata = metadata
                 shareViewController?.pages = pages
 
+                pages = NCApplicationHandle().filterPages(pages: pages)
+
                 if pages.contains(page) {
                     shareViewController?.page = page
                 } else if let page = pages.first {