diff options
author | Jack Yoo <jyoo@codeaurora.org> | 2016-06-21 16:30:11 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-07-07 09:41:04 -0700 |
commit | 0cb58a0566b3168a397782432e595ea0580b0391 (patch) | |
tree | efda08a71e327d8080d7bdf9812cba74f96d020e /src/com/android/camera/CaptureModule.java | |
parent | c8513bf1f30d0cf0257feaf4956e5179cfefe52b (diff) | |
download | android_packages_apps_Snap-0cb58a0566b3168a397782432e595ea0580b0391.tar.gz android_packages_apps_Snap-0cb58a0566b3168a397782432e595ea0580b0391.tar.bz2 android_packages_apps_Snap-0cb58a0566b3168a397782432e595ea0580b0391.zip |
SnapdragonCamera: Replacing mono surface
Replacing mono surface to allocation dummy surface
Change-Id: I8ed7396e6bee7fd34e223f285c0d9693ff04527a
CRs-Fixed: 1035245
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
-rw-r--r-- | src/com/android/camera/CaptureModule.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index cc9de40c2..5f7395f71 100644 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -708,7 +708,7 @@ public class CaptureModule implements CameraModule, PhotoController, @Override public void onConfigureFailed(CameraCaptureSession cameraCaptureSession) { - Log.e(TAG, "cameracapturesession - onConfigureFailed"); + Log.e(TAG, "cameracapturesession - onConfigureFailed "+id); new AlertDialog.Builder(mActivity) .setTitle("Camera Initialization Failed") .setMessage("Closing SnapdragonCamera") @@ -2725,9 +2725,9 @@ public class CaptureModule implements CameraModule, PhotoController, private void addPreviewSurface(CaptureRequest.Builder builder, List<Surface> surfaceList, int id) { if (isBackCamera() && getCameraMode() == DUAL_MODE && id == MONO_ID) { if(surfaceList != null) { - surfaceList.add(mUI.getSurfaceHolder2().getSurface()); + surfaceList.add(mUI.getMonoDummySurface()); } - builder.addTarget(mUI.getSurfaceHolder2().getSurface()); + builder.addTarget(mUI.getMonoDummySurface()); return; } else { List<Surface> surfaces = mFrameProcessor.getInputSurfaces(); @@ -2744,7 +2744,7 @@ public class CaptureModule implements CameraModule, PhotoController, private Surface getPreviewSurfaceForSession(int id) { if (isBackCamera()) { if (getCameraMode() == DUAL_MODE && id == MONO_ID) { - return mUI.getSurfaceHolder2().getSurface(); + return mUI.getMonoDummySurface(); } else { return mUI.getSurfaceHolder().getSurface(); } |