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 {