summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-09-07 15:00:25 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-09-07 15:00:25 -0700
commit1bead2f727b9e61d12c55adf46c4505a0695e267 (patch)
tree56eb926bb1bffb8d6cfda92f28cb08f3f5d1918e /src/com
parent4644fdb5bc78b2eba48f1319c23a13d776c43c33 (diff)
parent09ac9351a53845dada7941f3db8a755d35175506 (diff)
downloadandroid_packages_apps_Snap-1bead2f727b9e61d12c55adf46c4505a0695e267.tar.gz
android_packages_apps_Snap-1bead2f727b9e61d12c55adf46c4505a0695e267.tar.bz2
android_packages_apps_Snap-1bead2f727b9e61d12c55adf46c4505a0695e267.zip
Merge "Fix stretch between preview and video recording" into camera-SnapdragonCamera.lnx.2.0
Diffstat (limited to 'src/com')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 66963864d..f8e1b8d9a 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -4141,7 +4141,10 @@ public class CaptureModule implements CameraModule, PhotoController,
if (mHighSpeedCapture) {
preview = mVideoSize;
}
- mUI.setPreviewSize(preview.getWidth(), preview.getHeight());
+ if (mUI.setPreviewSize(preview.getWidth(), preview.getHeight())) {
+ mUI.hideSurfaceView();
+ mUI.showSurfaceView();
+ }
mUI.resetTrackingFocus();
createVideoSnapshotImageReader();