summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-11-22 15:26:13 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2013-09-16 18:25:59 +0700
commit402a257422ee94d207383d3182db76eedcd5dcb1 (patch)
tree39c21ed1594c0cc10314fc4d08010144c2ba14ab
parent92ebafc33925c85995b7481eecc168835d45d258 (diff)
downloadandroid_packages_apps_Gallery2-402a257422ee94d207383d3182db76eedcd5dcb1.tar.gz
android_packages_apps_Gallery2-402a257422ee94d207383d3182db76eedcd5dcb1.tar.bz2
android_packages_apps_Gallery2-402a257422ee94d207383d3182db76eedcd5dcb1.zip
VideoModule: check for videosnapshot support in onSingleTapUp
onSingleTapUp is now triggered through PreviewGestures instead of ActivityBase, so the check in initializeVideoSnapshot() is no longer enough to prevent triggering video snapshot on unsupported devices. Change-Id: I5f6e14f1125a9d47e03bb35fdc4ff358c589b73e
-rw-r--r--src/com/android/camera/VideoModule.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 531a05daf..b1ac5d3a0 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -453,7 +453,8 @@ public class VideoModule implements CameraModule,
}
MediaSaveService s = mActivity.getMediaSaveService();
- if (mPaused || mSnapshotInProgress || effectsActive() || s == null || s.isQueueFull()) {
+ if (mPaused || mSnapshotInProgress || effectsActive() || s == null || s.isQueueFull()
+ || !Util.isVideoSnapshotSupported(mParameters)) {
return;
}