tobiasKaminsky 9 년 전
부모
커밋
33b749d775
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      src/com/owncloud/android/ui/helpers/FileOperationsHelper.java

+ 4 - 2
src/com/owncloud/android/ui/helpers/FileOperationsHelper.java

@@ -526,9 +526,11 @@ public class FileOperationsHelper {
                 String encodedStoragePath = WebdavUtils.encodePath(storagePath);
                 Intent sendIntent = new Intent(Intent.ACTION_ATTACH_DATA);
                 // set MimeType
-                sendIntent.setType(file.getMimetype());
+//                sendIntent.setType(file.getMimetype());
 //                sendIntent.setData(Uri.parse(encodedStoragePath));
-                sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(encodedStoragePath));
+//                sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse(encodedStoragePath));
+                sendIntent.setDataAndType(Uri.parse(encodedStoragePath), "image/*");
+                sendIntent.putExtra("jpg", "image/*");
                 //            sendIntent.putExtra(Intent.EXTRA_STREAM, Uri.parse("file://" + encodedStoragePath));
                 //            sendIntent.putExtra("jpg", "image/*");