dm77 / barcodescanner

Barcode Scanner Libraries for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Preview is cliped and camera preview is not roated even after changing the orientation

chaitanya-vanapamala opened this issue · comments

When activity opened in portrait mode it is working fine but when we change the orientation to landscape it is clipping the bottom part as shown in below image, and also the preview orientation is not right, it is showing preview in reverse_portrait view. I have followed https://github.com/dm77/barcodescanner/blob/master/zxing-sample/src/main/java/me/dm7/barcodescanner/zxing/sample/SimpleScannerActivity.java.
library version : 1.9.8
Devices: I have tried Honor play, pixel all versions, Samsung tablets. I thinks it is happening in almost all devices.
Screenshot_20190821-165145

in 1.9.13 also.

in 1.9.13 also.

Solved by removed "orientation|screenSize" from android:configChanges in manifest.

commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.