merge develop
authorpurigarcia <pgarcia@solidgear.es>
Tue, 28 Jul 2015 08:46:13 +0000 (10:46 +0200)
committerpurigarcia <pgarcia@solidgear.es>
Tue, 28 Jul 2015 08:46:13 +0000 (10:46 +0200)
src/com/owncloud/android/files/FileOperationsHelper.java
src/com/owncloud/android/ui/adapter/FileListListAdapter.java

index 2f2907d..ddee205 100644 (file)
@@ -188,12 +188,14 @@ public class FileOperationsHelper {
     
     public void sendDownloadedFile(OCFile file) {
         if (file != null) {
+            String storagePath = file.getStoragePath();
+            String encodedStoragePath = WebdavUtils.encodePath(storagePath);
             Intent sendIntent = new Intent(android.content.Intent.ACTION_SEND);
             // set MimeType
             sendIntent.setType(file.getMimetype());
-            sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + file.getStoragePath()));
+            sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + encodedStoragePath));
             sendIntent.putExtra(Intent.ACTION_SEND, true);      // Send Action
-            
+
             // Show dialog, without the own app
             String[] packagesToExclude = new String[] { mFileActivity.getPackageName() };
             DialogFragment chooserDialog = ShareLinkToDialog.newInstance(sendIntent, packagesToExclude, file);
index 33fa57f..58e9255 100644 (file)
@@ -276,6 +276,7 @@ public class FileListListAdapter extends BaseAdapter implements ListAdapter {
                         sharedWithMeIconV.setVisibility(View.VISIBLE);\r
                     } else {\r
                         sharedWithMeIconV.setVisibility(View.GONE);\r
+\r
                     }\r
 \r
                     break;\r