Marino Faggiana 1 rok pred
rodič
commit
4c5d9daa8f

+ 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 {