mirror of
https://github.com/nextcloud/android.git
synced 2024-11-28 02:17:43 +03:00
Modify FileMenuFilter class for showing move option when it is appropiate
This commit is contained in:
parent
fbe0568883
commit
0c47bb097c
1 changed files with 8 additions and 0 deletions
|
@ -162,6 +162,14 @@ public class FileMenuFilter {
|
|||
} else {
|
||||
toShow.add(R.id.action_rename_file);
|
||||
}
|
||||
|
||||
// MOVE
|
||||
if (mFile == null || downloading || uploading) {
|
||||
toHide.add(R.id.action_move);
|
||||
|
||||
} else {
|
||||
toShow.add(R.id.action_move);
|
||||
}
|
||||
|
||||
// REMOVE
|
||||
if (mFile == null || downloading || uploading) {
|
||||
|
|
Loading…
Reference in a new issue