summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui
diff options
context:
space:
mode:
authormingwax <mingwax@codeaurora.org>2017-07-13 15:22:44 +0800
committermingwax <mingwax@codeaurora.org>2017-07-13 15:28:06 +0800
commitf90319b0d26d9dd1a6e0cf5a6e801adc300eb645 (patch)
tree9f50359688a2bb6e5ebff7ae8618fe7a82e6eefc /src/com/android/camera/ui
parentc549110ab1165ff87ffc75c12910e1ac9ea7aa19 (diff)
downloadandroid_packages_apps_Snap-f90319b0d26d9dd1a6e0cf5a6e801adc300eb645.tar.gz
android_packages_apps_Snap-f90319b0d26d9dd1a6e0cf5a6e801adc300eb645.tar.bz2
android_packages_apps_Snap-f90319b0d26d9dd1a6e0cf5a6e801adc300eb645.zip
SnapdragonCamera: Fix FC when mediarecorder start occur error
MediaRecorder.start method should be before the hideUIwhileRecording. Adjust the logic for starting video. CRs-Fixed: 2072609 Change-Id: Ie48f8ebc4bfe3385604d4095d8ff02029c26968b
Diffstat (limited to 'src/com/android/camera/ui')
-rw-r--r--[-rwxr-xr-x]src/com/android/camera/ui/Camera2FaceView.java2
-rw-r--r--[-rwxr-xr-x]src/com/android/camera/ui/FaceView.java7
2 files changed, 7 insertions, 2 deletions
diff --git a/src/com/android/camera/ui/Camera2FaceView.java b/src/com/android/camera/ui/Camera2FaceView.java
index 3b6d10541..81be61f81 100755..100644
--- a/src/com/android/camera/ui/Camera2FaceView.java
+++ b/src/com/android/camera/ui/Camera2FaceView.java
@@ -151,7 +151,9 @@ public class Camera2FaceView extends FaceView {
faceBound.offset(-mCameraBound.left, -mCameraBound.top);
mRect.set(faceBound);
translateMatrix.mapRect(mRect);
+ if (LOGV) CameraUtil.dumpRect(mRect, "Original rect");
mMatrix.mapRect(mRect);
+ if (LOGV) CameraUtil.dumpRect(mRect, "Transformed rect");
mPaint.setColor(mColor);
mRect.offset(dx, dy);
diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java
index b617891e5..04b3664eb 100755..100644
--- a/src/com/android/camera/ui/FaceView.java
+++ b/src/com/android/camera/ui/FaceView.java
@@ -33,14 +33,17 @@ import android.view.View;
import com.android.camera.PhotoUI;
import com.android.camera.util.CameraUtil;
+import com.android.camera.util.PersistUtil;
import org.codeaurora.snapcam.R;
import org.codeaurora.snapcam.wrapper.ExtendedFaceWrapper;
public class FaceView extends View
implements FocusIndicator, Rotatable,
PhotoUI.SurfaceTextureSizeChangedListener {
- protected static final String TAG = "CAM FaceView";
- protected final boolean LOGV = false;
+ protected static final String TAG = "CAM_FaceView";
+ protected final boolean LOGV =
+ (PersistUtil.getCamera2Debug() == PersistUtil.CAMERA2_DEBUG_DUMP_LOG) ||
+ (PersistUtil.getCamera2Debug() == PersistUtil.CAMERA2_DEBUG_DUMP_ALL);
// The value for android.hardware.Camera.setDisplayOrientation.
protected int mDisplayOrientation;
// The orientation compensation for the face indicator to make it look