Bug: When activity locked in sensorLandscape in AndroidManifest.xml, when the user rotates the device 180 degrees, most of the time the orientation of the preview will be upside down. The user needs to shake the device in order to reset the preview
Analysis: When the rotation happens the screen orientation has not been updated yet. Then the orientation does not update anymore (unless you shake the device)
Fix: Each time the orientation updates, also check if the screen orientation has updated too.
Bug: When activity locked in sensorLandscape in AndroidManifest.xml, when the user rotates the device 180 degrees, most of the time the orientation of the preview will be upside down. The user needs to shake the device in order to reset the preview
Analysis: When the rotation happens the screen orientation has not been updated yet. Then the orientation does not update anymore (unless you shake the device)
Fix: Each time the orientation updates, also check if the screen orientation has updated too.