mirror of
https://github.com/nextcloud/android.git
synced 2024-11-27 09:39:25 +03:00
this two options are not shown if the file is downloading or uploading
This commit is contained in:
parent
7df9aa7310
commit
32346efa62
1 changed files with 16 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue