On Saturday, July 18, 2015 at 1:10:58 PM UTC-7, Sean Owen wrote:
> It only supports landscape -- not reverse landscape. But I think it's correct AFAIK. If you have a suggested change please open a PR.
No, the issue is that the sensor is not guaranteed by Android to be aligned with landscape orientation. It may also be in reverse landscape, and the old Android camera API requires applications to explicitly account for this, by calling setDisplayOrientation() with the right rotation amount.
Since most devices have their sensor aligned with landscape and not reverse landscape, and the camera API display orientation defaults to 0, it's easy to miss this requirement.
It'll be a while before I'd have time to write up a PR for you; this is mostly a heads-up that you may get user reports of this issue soon, as devices that have sensors in reverse landscape are starting to appear.
The Nexus 6 has a reverse-landscape sensor for its front camera, for example, but since the barcode scanner uses the rear camera, you haven't run into it yet.