OSDN Git Service

Fix http://b/2140611 by adjusting the width of the preview view when video quality...
authorWei-Ta Chen <weita@google.com>
Thu, 24 Sep 2009 22:01:53 +0000 (15:01 -0700)
committerWei-Ta Chen <weita@google.com>
Thu, 24 Sep 2009 22:35:14 +0000 (15:35 -0700)
The preview view's aspect ratio should be the same to that of the preview frame.

src/com/android/camera/VideoCamera.java

index 9582323..3809517 100644 (file)
@@ -1409,6 +1409,8 @@ public class VideoCamera extends Activity implements View.OnClickListener,
             // It is assumed media recorder is released before
             // onSharedPreferenceChanged, so we can close the camera here.
             closeCamera();
+            resizeForPreviewAspectRatio(mVideoPreview);
+            resizeForPreviewAspectRatio(mVideoFrame);
             try {
                 startPreview(); // Parameters will be set in startPreview().
             } catch (CameraHardwareException e) {