summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Haeberling <haeberling@google.com>2013-08-13 23:31:10 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-08-13 23:31:10 +0000
commit1e3353427a04b945bfc6e167e38b63e814329a9f (patch)
treefc059e01128dbf4b040c700d0caaa773d4eba013
parente96a4ad86489b86d0ce2f7ce156723f4d9d94dba (diff)
parenta514b14dd769f67478c3296451bd9cd05676fa5f (diff)
downloadandroid_packages_apps_Snap-1e3353427a04b945bfc6e167e38b63e814329a9f.tar.gz
android_packages_apps_Snap-1e3353427a04b945bfc6e167e38b63e814329a9f.tar.bz2
android_packages_apps_Snap-1e3353427a04b945bfc6e167e38b63e814329a9f.zip
Merge "Don't take a snapshot if video recording is not in progress." into gb-ub-photos-carlsbad
-rw-r--r--src/com/android/camera/VideoModule.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index ada0a606f..76e1c5a31 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -418,15 +418,17 @@ public class VideoModule implements CameraModule,
mOrientation).show();
return;
}
-
takeASnapshot();
}
private void takeASnapshot() {
- // only take snapshots if video snapshot is supported by device
+ // Only take snapshots if video snapshot is supported by device
if (CameraUtil.isVideoSnapshotSupported(mParameters) && !mIsVideoCaptureIntent) {
+ if (!mMediaRecorderRecording || mPaused || mSnapshotInProgress || effectsActive()) {
+ return;
+ }
MediaSaveService s = mActivity.getMediaSaveService();
- if (mPaused || mSnapshotInProgress || effectsActive() || s == null || s.isQueueFull()) {
+ if (s == null || s.isQueueFull()) {
return;
}