Snapcam: do not take picture when shutter button disable
do not take picture when shutter button disable
Change-Id: I9d90c339e0ad95138b0da567fa249a8f6752ae0f
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index 2985fbb..8e5ef6e 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -3618,6 +3618,10 @@
public void unlockFocus(int id) {
Log.d(TAG, "unlockFocus " + id);
isFlashRequiredInDriver = false;
+ if ((mCurrentSceneMode.mode == CameraMode.HFR) && isHighSpeedRateCapture()) {
+ Log.d(TAG, "unlockFocus should not be triggered in HFR");
+ return;
+ }
if (!checkSessionAndBuilder(mCaptureSession[id], mPreviewRequestBuilder[id])) {
return;
}
@@ -6700,6 +6704,9 @@
}
return;
}
+ if (!mUI.isShutterEnabled()) {
+ return;
+ }
String timer = mSettingsManager.getValue(SettingsManager.KEY_TIMER);
int seconds = Integer.parseInt(timer);