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