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:
srowen 2008-02-21 16:37:06 +00:00
parent 2110c3fbdd
commit 08aa759c07

View file

@ -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) {