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

this two options are not shown if the file is downloading or uploading

purigarcia 9 жил өмнө
parent
commit
32346efa62

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

@@ -215,6 +215,22 @@ public class FileMenuFilter {
             toShow.add(R.id.action_send_file);
         }
 
+        // FAVORITES
+        if (mFile == null || downloading || uploading) {
+            toHide.add(R.id.action_favorite_file);
+
+        } else {
+            toShow.add(R.id.action_favorite_file);
+        }
+
+        // UNFAVORITES
+        if (mFile == null || downloading || uploading) {
+            toHide.add(R.id.action_unfavorite_file);
+
+        } else {
+            toShow.add(R.id.action_unfavorite_file);
+        }
+
     }
 
 }