|
@@ -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);
|
|
|
}
|