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