marinofaggiana преди 3 години
родител
ревизия
abbf0a02ce
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

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

@@ -865,7 +865,9 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         becomeFirstResponder()
                 
         listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_paste_file_", comment: ""), action: #selector(pasteFilesMenu)))
-        listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_background_", comment: ""), action: #selector(backgroundFilesMenu)))
+        if #available(iOS 13.0, *) {
+            listMenuItems.append(UIMenuItem.init(title: NSLocalizedString("_background_", comment: ""), action: #selector(backgroundFilesMenu)))
+        }
         
         if listMenuItems.count > 0 {
             UIMenuController.shared.menuItems = listMenuItems