kopia lustrzana https://github.com/ryukoposting/Signal-Android
rodzic
9279a54d28
commit
f1d98f6c7b
|
@ -109,10 +109,10 @@ 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);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue