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

This commit is contained in:
purigarcia 2015-07-08 08:55:41 +02:00
parent 7df9aa7310
commit 32346efa62

View file

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