mirror of
https://github.com/zxing/zxing.git
synced 2024-11-09 20:44:03 -08:00
Now calls setSizeFromLayout() rather than fixed to a 320x240 size
git-svn-id: https://zxing.googlecode.com/svn/trunk@218 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
2110c3fbdd
commit
08aa759c07
|
@ -48,10 +48,7 @@ final class CameraSurfaceView extends SurfaceView implements SurfaceHolder.Callb
|
|||
surfaceHolder.setCallback(this);
|
||||
hasSurface = false;
|
||||
scannerAlpha = 0;
|
||||
|
||||
// FIXME(dswitkin): This resolution needs to be made dynamic to handle different devices and
|
||||
// orientations.
|
||||
surfaceHolder.setFixedSize(320, 240);
|
||||
surfaceHolder.setSizeFromLayout();
|
||||
}
|
||||
|
||||
public boolean surfaceCreated(SurfaceHolder holder) {
|
||||
|
|
Loading…
Reference in a new issue