diff options
author | zhuw <zhuw@codeaurora.org> | 2018-01-29 13:16:14 +0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-01-29 02:01:33 -0800 |
commit | 31f6d1cb6545582d5be6f6f700a4f244a4383c11 (patch) | |
tree | 0468734183d62940829b6e70572337a61505113c /src/com/android/camera/ui | |
parent | 8fb2c4d333019909dac6e5779e1cbc71748f1fc4 (diff) | |
download | android_packages_apps_Snap-31f6d1cb6545582d5be6f6f700a4f244a4383c11.tar.gz android_packages_apps_Snap-31f6d1cb6545582d5be6f6f700a4f244a4383c11.tar.bz2 android_packages_apps_Snap-31f6d1cb6545582d5be6f6f700a4f244a4383c11.zip |
SDcamera:Fix AE mode is changed after Snapshot
when in dev option, apply common settings after snapshot
Change-Id: I96a25267ea43167137cc19fb82f4a23431b3199e
Diffstat (limited to 'src/com/android/camera/ui')
-rw-r--r-- | src/com/android/camera/ui/Camera2FaceView.java | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/com/android/camera/ui/Camera2FaceView.java b/src/com/android/camera/ui/Camera2FaceView.java index d08a4a722..81be61f81 100644 --- a/src/com/android/camera/ui/Camera2FaceView.java +++ b/src/com/android/camera/ui/Camera2FaceView.java @@ -117,14 +117,6 @@ public class Camera2FaceView extends FaceView { rw = rh; rh = temp; } - if (rw * mCameraBound.width() != mCameraBound.height() * rh) { - if (rw >= getWidth()) { - rh = getWidth() * mCameraBound.width() / mCameraBound.height(); - } - if (rh >= getHeight()) { - rw = getHeight() * mCameraBound.height() / mCameraBound.width(); - } - } CameraUtil.prepareMatrix(mMatrix, mMirror, mDisplayOrientation, rw, rh); // mMatrix assumes that the face coordinates are from -1000 to 1000. @@ -139,10 +131,8 @@ public class Camera2FaceView extends FaceView { bsgcTranslateMatrix.postScale(2000f / mCameraBound.width(), 2000f / mCameraBound.height()); - int dx = (getWidth() - mUncroppedWidth) / 2; - dx -= (rw - mUncroppedWidth) / 2; - int dy = (getHeight() - mUncroppedHeight) / 2; - dy -= (rh - mUncroppedHeight) / 2; + int dx = (getWidth() - rw) / 2; + int dy = (getHeight() - rh) / 2; // Focus indicator is directional. Rotate the matrix and the canvas // so it looks correctly in all orientations. |