summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/WideAnglePanoramaUI.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/WideAnglePanoramaUI.java')
-rw-r--r--src/com/android/camera/WideAnglePanoramaUI.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/camera/WideAnglePanoramaUI.java b/src/com/android/camera/WideAnglePanoramaUI.java
index 4d48d9501..547836850 100644
--- a/src/com/android/camera/WideAnglePanoramaUI.java
+++ b/src/com/android/camera/WideAnglePanoramaUI.java
@@ -24,6 +24,7 @@ import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.Point;
import android.graphics.Rect;
+import android.graphics.RectF;
import android.graphics.SurfaceTexture;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
@@ -654,6 +655,9 @@ public class WideAnglePanoramaUI extends BaseUI implements
}
layoutPreview();
- mCameraControls.setPreviewRatio(mAspectRatio, false);
+
+ RectF r = new RectF(mTextureView.getLeft(), mTextureView.getTop(),
+ mTextureView.getRight(), mTextureView.getBottom());
+ onPreviewRectChanged(r);
}
}