Эх сурвалжийг харах

Modify FileMenuFilter class for showing move option when it is appropiate

jabarros 10 жил өмнө
parent
commit
0c47bb097c

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

@@ -162,6 +162,14 @@ public class FileMenuFilter {
         } else {
         } else {
             toShow.add(R.id.action_rename_file);
             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
         // REMOVE
         if (mFile == null || downloading || uploading) {
         if (mFile == null || downloading || uploading) {