From: jabarros Date: Tue, 12 Aug 2014 07:11:26 +0000 (+0200) Subject: Modify FileMenuFilter class for showing move option when it is appropiate X-Git-Tag: oc-android-1.7.0_signed~197^2~26 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/0c47bb097c74f41225031cc1fa6647bd81656361 Modify FileMenuFilter class for showing move option when it is appropiate --- diff --git a/src/com/owncloud/android/files/FileMenuFilter.java b/src/com/owncloud/android/files/FileMenuFilter.java index 5b1933b3..6eb746cb 100644 --- a/src/com/owncloud/android/files/FileMenuFilter.java +++ b/src/com/owncloud/android/files/FileMenuFilter.java @@ -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) {