Now calls setSizeFromLayout() rather than fixed to a 320x240 size
authorsrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 21 Feb 2008 16:37:06 +0000 (16:37 +0000)
committersrowen <srowen@59b500cc-1b3d-0410-9834-0bbf25fbcc57>
Thu, 21 Feb 2008 16:37:06 +0000 (16:37 +0000)
git-svn-id: http://zxing.googlecode.com/svn/trunk@218 59b500cc-1b3d-0410-9834-0bbf25fbcc57

android/src/com/google/zxing/client/android/CameraSurfaceView.java

index 06132cd..e532cd0 100644 (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) {