summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java4
-rwxr-xr-xsrc/com/android/camera/CaptureUI.java4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index e171b8b77..c3cfffc54 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -5264,7 +5264,9 @@ public class CaptureModule implements CameraModule, PhotoController,
}
if (mIsRecordingVideo) {
- captureVideoSnapshot(getMainCameraId());
+ if (mUI.isShutterEnabled()) {
+ captureVideoSnapshot(getMainCameraId());
+ }
} else {
String timer = mSettingsManager.getValue(SettingsManager.KEY_TIMER);
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java
index 57ef697b2..c4952eb87 100755
--- a/src/com/android/camera/CaptureUI.java
+++ b/src/com/android/camera/CaptureUI.java
@@ -1421,6 +1421,10 @@ public class CaptureUI implements FocusOverlayManager.FocusUI,
}
}
+ public boolean isShutterEnabled() {
+ return mShutterButton.isEnabled();
+ }
+
/**
* Enables or disables the video button.
*/