summaryrefslogtreecommitdiff
path: root/src/com/android/camera/CaptureModule.java
diff options
context:
space:
mode:
authorxianming wang <mingwax@codeaurora.org>2017-11-15 17:52:12 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-02-28 00:39:05 -0800
commit7b5e22799a57f23fde5615051a6409f9e89bc929 (patch)
tree314e4f58464ec401fd2de49be2cdf480ded9d2ce /src/com/android/camera/CaptureModule.java
parent4335371742baa7ddd04b8359c4bd6c76cf4e29d1 (diff)
SnapdragonCamera: Remove the stop preview when snapshot
Remove the code of stop preview when snapshot. Change-Id: Ie1c830c6699ac877f233c9ef0fd5ba7471299dae CRs-Fixed: 2143864
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-xsrc/com/android/camera/CaptureModule.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java
index fd33eb029..c0c8ea6cf 100755
--- a/src/com/android/camera/CaptureModule.java
+++ b/src/com/android/camera/CaptureModule.java
@@ -1757,14 +1757,12 @@ public class CaptureModule implements CameraModule, PhotoController,
if (mSaveRaw) {
captureBuilder.addTarget(mRawImageReader[id].getSurface());
}
+
if(mPaused || !mCamerasOpened) {
//for avoid occurring crash when click back before capture finished.
//CameraDevice was already closed
return;
}
- if (!mIsSupportedQcfa) {
- mCaptureSession[id].stopRepeating();
- }
if (mLongshotActive) {
captureStillPictureForLongshot(captureBuilder, id);
} else {
@@ -1786,7 +1784,6 @@ public class CaptureModule implements CameraModule, PhotoController,
}else{
captureBuilder.set(CaptureRequest.CONTROL_ENABLE_ZSL, false);
}
-
applySettingsForJpegInformation(captureBuilder, id);
addPreviewSurface(captureBuilder, null, id);
VendorTagUtil.setCdsMode(captureBuilder, 2); // CDS 0-OFF, 1-ON, 2-AUTO
@@ -5795,7 +5792,7 @@ public class CaptureModule implements CameraModule, PhotoController,
}
mUI.initializeProMode(!mPaused && promode);
}
-
+
boolean checkSessionAndBuilder(CameraCaptureSession session, CaptureRequest.Builder builder) {
return session != null && builder != null;
}