summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 5ec6f5be9..fa0b560d7 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -4458,11 +4458,7 @@ public class CaptureModule implements CameraModule, PhotoController,
closePreviewSession();
mFrameProcessor.onClose();
- Size preview = mVideoPreviewSize;
- if (mHighSpeedCapture) {
- preview = mVideoSize;
- }
- if (mUI.setPreviewSize(preview.getWidth(), preview.getHeight())) {
+ if (mUI.setPreviewSize(mVideoPreviewSize.getWidth(), mVideoPreviewSize.getHeight())) {
mUI.hideSurfaceView();
mUI.showSurfaceView();
}