소스 검색

options are not shown if it is a foler

purigarcia 9 년 전
부모
커밋
d039386831
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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);
         }