summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/camera/PhotoModule.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/android/camera/PhotoModule.java b/src/com/android/camera/PhotoModule.java
index f95d40564..c487aa1c7 100644
--- a/src/com/android/camera/PhotoModule.java
+++ b/src/com/android/camera/PhotoModule.java
@@ -196,6 +196,9 @@ public class PhotoModule
private boolean mRefocus = false;
private boolean mLastPhotoTakenWithRefocus = false;
+ private int mLongShotCaptureCount;
+ private int mLongShotCaptureCountLimit;
+
// The degrees of the device rotated clockwise from its natural orientation.
private int mOrientation = OrientationEventListener.ORIENTATION_UNKNOWN;
private ComboPreferences mPreferences;
@@ -968,9 +971,16 @@ public class PhotoModule
return;
}
+ if(mLongShotCaptureCount == mLongShotCaptureCountLimit) {
+ mLongshotActive = false;
+ return;
+ }
+
mUI.doShutterAnimation();
Location loc = getLocationAccordPictureFormat(mParameters.get(KEY_PICTURE_FORMAT));
+
+ mLongShotCaptureCount++;
if (mLongshotSave) {
mCameraDevice.takePicture(mHandler,
new LongshotShutterCallback(),
@@ -1558,6 +1568,9 @@ public class PhotoModule
}
if (mCameraState == LONGSHOT) {
+ mLongShotCaptureCountLimit = SystemProperties.getInt(
+ "persist.camera.longshot.shotnum", 0);
+ mLongShotCaptureCount = 1;
if(mLongshotSave) {
mCameraDevice.takePicture(mHandler,
new LongshotShutterCallback(),