summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDoris Liu <tianliu@google.com>2013-08-20 11:14:07 -0700
committerDoris Liu <tianliu@google.com>2013-08-20 11:16:27 -0700
commit13ca71ebdbb2eb9c492da16262311b1290474f7d (patch)
tree182ac0d9ce0a6321f2f0c9e9f7f8b93f14959cca /src
parent0819304bc06ffd3498d9fd0d8a148c50f0903c46 (diff)
downloadandroid_packages_apps_Snap-13ca71ebdbb2eb9c492da16262311b1290474f7d.tar.gz
android_packages_apps_Snap-13ca71ebdbb2eb9c492da16262311b1290474f7d.tar.bz2
android_packages_apps_Snap-13ca71ebdbb2eb9c492da16262311b1290474f7d.zip
Fix squished preview
Bug: 10330209 Change-Id: I0b208ccd556d8c65474ad6bce0d2ddc3c2bdb7f6
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/PhotoUI.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java
index 1f5ae2467..43862d376 100644
--- a/src/com/android/camera/PhotoUI.java
+++ b/src/com/android/camera/PhotoUI.java
@@ -129,7 +129,7 @@ public class PhotoUI implements PieListener,
int bottom, int oldLeft, int oldTop, int oldRight, int oldBottom) {
int width = right - left;
int height = bottom - top;
- // Full-screen screennail
+ // Full-screen preview
int w = width;
int h = height;
if (CameraUtil.getDisplayRotation(mActivity) % 180 != 0) {
@@ -139,6 +139,7 @@ public class PhotoUI implements PieListener,
if (mPreviewWidth != width || mPreviewHeight != height) {
mPreviewWidth = width;
mPreviewHeight = height;
+ setTransformMatrix(width, height);
mController.onScreenSizeChanged(width, height, w, h);
}
}
@@ -204,7 +205,6 @@ public class PhotoUI implements PieListener,
private void setTransformMatrix(int width, int height) {
mMatrix = mTextureView.getTransform(mMatrix);
- int orientation = CameraUtil.getDisplayRotation(mActivity);
float scaleX = 1f, scaleY = 1f;
float scaledTextureWidth, scaledTextureHeight;
if (width > height) {