Fotoapparat
Fotoapparat copied to clipboard
Preview together with taken photo change theirs size after takePicture() on Sony Xperia XA2
What are you trying to achieve or the steps to reproduce?
After calling takePicture() function, preview becomes smaller and after some small amount of time it returns to the original size. It affects taken photo, it looks like it was taken with more wide-angle camera. I understand that I found this issue only on a single device, but maybe you can give me a clue for any workaround.
How did you initialize FA?
val cameraConfiguration = CameraConfiguration(
pictureResolution = aspectRatio(Rational(4, 3).toFloat(), highestResolution()),
previewResolution = aspectRatio(Rational(4, 3).toFloat(), highestResolution()),
jpegQuality = manualJpegQuality(100)
)
fotoapparat = Fotoapparat(
context = context,
view = cameraView,
cameraConfiguration = cameraConfiguration
)
What was the result you received?
Here is recorded screen with issue: https://media.giphy.com/media/8OSSSa6RsPmm8JPgKh/giphy.gif
Context:
- FA version: 2.6.1
- Devices/APIs affected: Sony Xperia XA2