summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2017-01-04 11:16:27 +0800
committerArne Coucheron <arco68@gmail.com>2017-06-13 07:18:43 +0200
commitb37ea18e57aaa4492366b89065fb75ba6d067f2e (patch)
tree5bf3d95048169383e677dcb7f587ec269aa183e0
parent708af54ab42e5f4143d987ef6a9aa476499763ae (diff)
downloadandroid_packages_apps_Snap-b37ea18e57aaa4492366b89065fb75ba6d067f2e.zip
android_packages_apps_Snap-b37ea18e57aaa4492366b89065fb75ba6d067f2e.tar.gz
android_packages_apps_Snap-b37ea18e57aaa4492366b89065fb75ba6d067f2e.tar.bz2
SnapdragonCamera: Fix preview in wrong size
After setPreviewSize() is called, the size of the preview is not changed, need to invoke showSurfaceView to make it update. Change-Id: I67215bcce77c1016a0dfd66d100dcd251597af78 CRs-Fixed: 1105422
-rw-r--r--src/com/android/camera/CaptureUI.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 9d29358..ffca4a1 100644
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -1514,6 +1514,9 @@ public class CaptureUI extends BaseUI implements PreviewGestures.SingleTapListen
boolean changed = (width != mPreviewWidth) || (height != mPreviewHeight);
mPreviewWidth = width;
mPreviewHeight = height;
+ if (changed) {
+ showSurfaceView();
+ }
return changed;
}