google/jetpack-camera-app

Image preview remains upside down when rotating device 180 degrees

alexvanyo opened this issue · 0 comments

When unlocking orientation to allow landscape (to fix #90 ), rotating the device 180 degrees to go directly from landscape to reverse landscape can result in the image preview being upside down.

There is no configuration change or activity recreation here, instead a DisplayListener can be used: https://developer.android.com/training/camerax/orientation-rotation#displayListener