File tree Expand file tree Collapse file tree
owncloudApp/src/main/java/com/owncloud/android/ui/fragment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -938,6 +938,15 @@ private boolean onFileActionChosen(int menuId) {
938938 mContainerActivity .showDetails (singleFile );
939939 return true ;
940940 }
941+ case R .id .action_send_file : {
942+ // Obtain the file
943+ if (!singleFile .isDown ()) { // Download the file
944+ ((FileDisplayActivity ) mContainerActivity ).startDownloadForSending (singleFile );
945+ } else {
946+ mContainerActivity .getFileOperationsHelper ().sendDownloadedFile (singleFile );
947+ }
948+ return true ;
949+ }
941950 }
942951 }
943952
@@ -958,10 +967,7 @@ private boolean onFileActionChosen(int menuId) {
958967 return true ;
959968 }
960969 case R .id .action_send_file : {
961- // Obtain the file
962- if (!filesAreDown (checkedFiles )) { // Download the file
963- ((FileDisplayActivity ) mContainerActivity ).startDownloadForSending (checkedFiles .get (0 ));
964- } else {
970+ if (checkedFiles .size () > 1 && filesAreDown (checkedFiles )) {
965971 mContainerActivity .getFileOperationsHelper ().sendDownloadedFiles (checkedFiles );
966972 }
967973 return true ;
You can’t perform that action at this time.
0 commit comments