diff options
author | Linux Build Service Account <lnxbuild@localhost> | 2019-01-04 16:05:58 -0800 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2019-01-04 16:05:58 -0800 |
commit | 73540a2000b9f0df9822bceb315b25b777edcbe0 (patch) | |
tree | 654ac739c9478036314968ad05f21033da3acf88 /src/com/android/camera/CaptureModule.java | |
parent | f3d18309fc3939871a8b8b9186b51ce4dbbadbef (diff) | |
parent | 0efab1aee8e05ac893e53f02f81ffaae0032c174 (diff) | |
download | android_packages_apps_Snap-73540a2000b9f0df9822bceb315b25b777edcbe0.tar.gz android_packages_apps_Snap-73540a2000b9f0df9822bceb315b25b777edcbe0.tar.bz2 android_packages_apps_Snap-73540a2000b9f0df9822bceb315b25b777edcbe0.zip |
Merge "SnapdragonCamera: Remove the previewBuilder callback" into camera-SnapdragonCamera.lnx.2.0
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rwxr-xr-x | src/com/android/camera/CaptureModule.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index 9851f7c40..3f689115c 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -2335,6 +2335,10 @@ public class CaptureModule implements CameraModule, PhotoController, public void onCaptureCompleted(CameraCaptureSession session, CaptureRequest request, TotalCaptureResult result) { + String requestTag = String.valueOf(request.getTag()); + if (requestTag.equals("preview")) { + return; + } Log.d(TAG, "captureStillPictureForLongshot onCaptureCompleted: " + mNumFramesArrived.get() + " " + mShotNum); if (mLongshotActive) { checkAndPlayShutterSound(getMainCameraId()); @@ -2350,6 +2354,10 @@ public class CaptureModule implements CameraModule, PhotoController, @Override public void onCaptureStarted(CameraCaptureSession session, CaptureRequest request, long timestamp, long frameNumber) { + String requestTag = String.valueOf(request.getTag()); + if (requestTag.equals("preview")) { + return; + } mLongshoting = true; mNumFramesArrived.incrementAndGet(); if(mNumFramesArrived.get() == mShotNum) { @@ -2412,8 +2420,10 @@ public class CaptureModule implements CameraModule, PhotoController, boolean isBurstShotFpsEnable = PersistUtil.isBurstShotFpsEnabled(); for (int i = 0; i < MAX_IMAGEREADERS*2; i++) { if (isBurstShotFpsEnable) { + mPreviewRequestBuilder[id].setTag("preview"); burstList.add(mPreviewRequestBuilder[id].build()); } + captureBuilder.setTag("capture"); burstList.add(captureBuilder.build()); } mCaptureSession[id].captureBurst(burstList, mLongshotCallBack, mCaptureCallbackHandler); |