summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2015-08-06 22:39:14 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-08-06 22:39:14 -0700
commitf88dd95428f256f3909c288455d4f6d19092c459 (patch)
treeb8253c0a2cd749b8dc53684fa28ad6fb3a7a5b46 /src
parent5179bc00d2b8d29ed008564f77b112f04afea973 (diff)
parent7ca29af28d2e3e2af1e7f02a02ff8ad78cc9af8f (diff)
downloadandroid_packages_apps_Snap-f88dd95428f256f3909c288455d4f6d19092c459.tar.gz
android_packages_apps_Snap-f88dd95428f256f3909c288455d4f6d19092c459.tar.bz2
android_packages_apps_Snap-f88dd95428f256f3909c288455d4f6d19092c459.zip
Merge "SnapdragonCamera: notify focus manager about surface change"
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/PhotoUI.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoUI.java b/src/com/android/camera/PhotoUI.java
index b31b7314f..837fd0e4f 100644
--- a/src/com/android/camera/PhotoUI.java
+++ b/src/com/android/camera/PhotoUI.java
@@ -30,6 +30,7 @@ import android.graphics.Bitmap;
import android.graphics.Color;
import android.graphics.Matrix;
import android.graphics.Point;
+import android.graphics.RectF;
import android.graphics.drawable.AnimationDrawable;
import android.graphics.drawable.ColorDrawable;
import android.hardware.Camera;
@@ -446,6 +447,9 @@ public class PhotoUI implements PieListener,
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
Log.v(TAG, "surfaceChanged: width =" + width + ", height = " + height);
+ RectF r = new RectF(mSurfaceView.getLeft(), mSurfaceView.getTop(),
+ mSurfaceView.getRight(), mSurfaceView.getBottom());
+ mController.onPreviewRectChanged(CameraUtil.rectFToRect(r));
}
@Override