Browse Source

options are not shown if it is a foler

purigarcia 9 years ago
parent
commit
d039386831
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/com/owncloud/android/files/FileMenuFilter.java

+ 2 - 4
src/com/owncloud/android/files/FileMenuFilter.java

@@ -216,17 +216,15 @@ public class FileMenuFilter {
         }
 
         // FAVORITES
-        if (mFile == null || downloading || uploading) {
+        if (mFile == null || downloading || uploading || mFile.isFolder()) {
             toHide.add(R.id.action_favorite_file);
-
         } else {
             toShow.add(R.id.action_favorite_file);
         }
 
         // UNFAVORITES
-        if (mFile == null || downloading || uploading) {
+        if (mFile == null || downloading || uploading || mFile.isFolder()) {
             toHide.add(R.id.action_unfavorite_file);
-
         } else {
             toShow.add(R.id.action_unfavorite_file);
         }