Modify FileMenuFilter class for showing move option when it is appropiate

This commit is contained in:
jabarros 2014-08-12 09:11:26 +02:00
parent fbe0568883
commit 0c47bb097c

View file

@ -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) {