|
@@ -530,14 +530,15 @@ public class FileOperationsHelper {
|
|
intent.putExtra("mimeType", file.getMimetype());
|
|
intent.putExtra("mimeType", file.getMimetype());
|
|
mFileActivity.startActivityForResult(Intent.createChooser(intent,
|
|
mFileActivity.startActivityForResult(Intent.createChooser(intent,
|
|
mFileActivity.getString(R.string.set_as)), 200);
|
|
mFileActivity.getString(R.string.set_as)), 200);
|
|
- } else {
|
|
|
|
|
|
+ }
|
|
// TODO re-enable after resized images is available
|
|
// TODO re-enable after resized images is available
|
|
|
|
+// else {
|
|
// Uri sendUri = Uri.parse("content://" + DiskLruImageCacheFileProvider.AUTHORITY + file.getRemotePath());
|
|
// Uri sendUri = Uri.parse("content://" + DiskLruImageCacheFileProvider.AUTHORITY + file.getRemotePath());
|
|
// Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
|
|
// Intent intent = new Intent(Intent.ACTION_ATTACH_DATA);
|
|
// intent.setDataAndType(sendUri, file.getMimetype());
|
|
// intent.setDataAndType(sendUri, file.getMimetype());
|
|
// intent.putExtra("mimeType", file.getMimetype());
|
|
// intent.putExtra("mimeType", file.getMimetype());
|
|
// mFileActivity.startActivityForResult(Intent.createChooser(intent, "Set As"), 200);
|
|
// mFileActivity.startActivityForResult(Intent.createChooser(intent, "Set As"), 200);
|
|
- }
|
|
|
|
|
|
+// }
|
|
} else {
|
|
} else {
|
|
Log_OC.wtf(TAG, "Trying to send a NULL OCFile");
|
|
Log_OC.wtf(TAG, "Trying to send a NULL OCFile");
|
|
}
|
|
}
|