Browse Source

Modify FileMenuFilter class for showing move option when it is appropiate

jabarros 10 years ago
parent
commit
0c47bb097c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/com/owncloud/android/files/FileMenuFilter.java

+ 8 - 0
src/com/owncloud/android/files/FileMenuFilter.java

@@ -162,6 +162,14 @@ public class FileMenuFilter {
         } else {
             toShow.add(R.id.action_rename_file);
         }
+
+        // MOVE
+        if (mFile == null || downloading || uploading) {
+            toHide.add(R.id.action_move);
+
+        } else {
+            toShow.add(R.id.action_move);
+        }
         
         // REMOVE
         if (mFile == null || downloading || uploading) {