mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 19:38:34 +00:00
parent
9279a54d28
commit
f1d98f6c7b
@ -109,12 +109,12 @@ public class SaveAttachmentTask extends ProgressDialogAsyncTask<SaveAttachmentTa
|
||||
Util.copy(inputStream, outputStream);
|
||||
MediaScannerConnection.scanFile(context, new String[]{mediaUri.getPath()}, new String[]{contentType}, null);
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
try (OutputStream outputStream = context.getContentResolver().openOutputStream(mediaUri)) {
|
||||
Util.copy(inputStream, outputStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT > 28) {
|
||||
ContentValues updatePendingValues = new ContentValues();
|
||||
|
Loading…
x
Reference in New Issue
Block a user