mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 16:57:50 +00:00
parent
352418d2d7
commit
b1bf33b13b
@ -61,8 +61,12 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
|
||||
|
||||
File mediaFile = constructOutputFile(attachment.contentType, attachment.date);
|
||||
InputStream inputStream = PartAuthority.getPartStream(context, masterSecret, attachment.uri);
|
||||
OutputStream outputStream = new FileOutputStream(mediaFile);
|
||||
|
||||
if (inputStream == null) {
|
||||
return FAILURE;
|
||||
}
|
||||
|
||||
OutputStream outputStream = new FileOutputStream(mediaFile);
|
||||
Util.copy(inputStream, outputStream);
|
||||
|
||||
MediaScannerConnection.scanFile(context, new String[]{mediaFile.getAbsolutePath()},
|
||||
|
Loading…
x
Reference in New Issue
Block a user