summaryrefslogtreecommitdiff
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorjunjiez <junjiez@codeaurora.org>2019-01-15 14:08:33 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2019-02-19 23:35:08 -0800
commit4286af343034d16882121c41e659e17c1383463a (patch)
tree5e4fae3062da3cebe6337a00968c06b8f4d5512f /src/com/android/camera/CaptureModule.java
parent7736f78072ef063f1aefb46415e7f87443f35a6d (diff)
SnapdraongCamera:Fix HAL-ZSL flash
The capture result of preview repeating request has delay, need to discard the preview capture result when the AE lock is still true after unlock focus to avoid chosing HAL-ZSL when flash is needed. Change-Id: I7b478c11be93fa12fdb4773dc57ec91a2aaf6306 CRs-Fixed: 2372219
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index f06521720..843d530bc 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1898,7 +1898,8 @@ public class CaptureModule implements CameraModule, PhotoController,
if ((mSettingsManager.isZSLInHALEnabled() &&
!isFlashOn(getMainCameraId()) && (mPreviewCaptureResult != null &&
mPreviewCaptureResult.get(CaptureResult.CONTROL_AE_STATE) !=
- CameraMetadata.CONTROL_AE_STATE_FLASH_REQUIRED)) ||
+ CameraMetadata.CONTROL_AE_STATE_FLASH_REQUIRED &&
+ mPreviewCaptureResult.getRequest().get(CaptureRequest.CONTROL_AE_LOCK) != Boolean.TRUE)) ||
isActionImageCapture()) {
takeZSLPictureInHAL();
} else {