diff options
Diffstat (limited to 'src/com/android')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 4 | ||||
-rwxr-xr-x | src/com/android/camera/CaptureUI.java | 4 |
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. */ |