marinofaggiana 6 years ago
parent
commit
b3cffb6a61
1 changed files with 9 additions and 8 deletions
  1. 9 8
      iOSClient/Media/NCMedia.swift

+ 9 - 8
iOSClient/Media/NCMedia.swift

@@ -240,25 +240,26 @@ class NCMedia: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
     func dropdownMenu(_ dropdownMenu: DropdownMenu, didSelectRowAt indexPath: IndexPath) {
         
         if dropdownMenu.token == "tapMoreHeaderMenu" {
-            
-            switch indexPath.section {
-                    
+            switch indexPath.row {
             case 0:
                 isEditMode = true
             case 1: break
-            case 2: break
-            case 3: break
-                   
+            case 2:
+                filterTypeFileImage = !filterTypeFileImage
+                collectionViewReloadDataSource()
+            case 3:
+                filterTypeFileVideo = !filterTypeFileVideo
+                collectionViewReloadDataSource()
             default: ()
             }
         }
         
         if dropdownMenu.token == "tapMoreHeaderMenuSelect" {
-            
             switch indexPath.section {
-                
             case 0:
                 isEditMode = false
+                selectFileID.removeAll()
+                collectionView.reloadData()
             case 1: break
            
             default: ()