In CameraXCameraUseCase, when taking a picture through an external intent, the takePicture method opens an output stream twice. It shows a lint warning saying:
This OutputStream should be freed up after use with #close()
We can probably just replace the second contentResolver.openOutputStream(imageCaptureUri) with outputStream?
In
CameraXCameraUseCase
, when taking a picture through an external intent, thetakePicture
method opens an output stream twice. It shows a lint warning saying:We can probably just replace the second
contentResolver.openOutputStream(imageCaptureUri)
withoutputStream
?