Incorrect camera preview after changing device orientation
- [X] I have searched open and closed issues for duplicates
- [X] I am submitting a bug report for existing functionality that does not work as intended
- [X] I have read https://github.com/signalapp/Signal-Android/wiki/Submitting-useful-bug-reports
- [X] This isn't a feature request or a discussion topic
Bug description
When Signal shows the camera preview and I rotate it (e.g. from portrait to landscape), the camera preview gets screwed up. I.e., it only shows the bottom part (?) of the actual image. The same happens vice versa, i.e. starting from landscape and rotating to portrait.
(This behavior was also at least present on 4.78)
Steps to reproduce
- Use the in-app camera
- Rotate the device (e.g. portrait to landscape)
Actual result: The camera preview shows an incomplete (and mostly unusable) image. Expected result: The camera preview should be the same (or as similar as possible) to the actual image.
Screenshots
-
Phone in portrait orientation --> correct:

-
Preview after changing it to landscape:

-
Image captured in landscape (very different from preview):

Device info
Device: Google Pixel 4 Android version: 11 Signal version: 4.79.0
Link to debug log
https://debuglogs.org/15ba6068693239e9d7d0b7db1b7840418c9a714a311ec795d3205e872d8af418
After having installed the latest Android update as well as Signal 5.0.1, I just want to ask if there is anything I can help, or provide additional details, logs, instructions, screenshots etc.
I would very much appreciate this issue to be fixed, as it currently renders the in-app camera basically useless for me. Thanks!
Can confirm I still have this in 5.0.8 on a Google Pixel 4 XL with Android 11 (Dec 2020 update).
For me, the preview is not just a different angle but completely distorted / squeezed before taking the picture:

Have this on Mi 9 Miui 12 Android 10. Signal 5.4.12
Same issue here.
Honor COL-L29 Huawei EMUI 10.0.0, Android 10 Signal 5.21.6
Can't reproduce any more (at least on Android 12 with Signal 5.28.5). Closing it for now. If anybody still sees this issue, please feel free to reopen.