Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f02913c4 authored by Shuzhen Wang's avatar Shuzhen Wang
Browse files

Camera: Fix the document on createCaptureSession error

When createCaptureSessionByOutputConfigurations fails, it doesn't throw
an exception. Instead, onConfigureFailed will be called.

Test: Compiles
Bug: 33777818
Change-Id: Ia0e139265bee0eda2118f903a6b46358a14c672c
parent 95073886
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -293,7 +293,8 @@ public final class OutputConfiguration implements Parcelable {
     * case is to create a capture session with that output configuration. For example, if the
     * camera device uses the same private buffer format between a SurfaceView/SurfaceTexture and a
     * MediaRecorder/MediaCodec, {@link CameraDevice#createCaptureSessionByOutputConfigurations}
     * will succeed. Otherwise, it throws {@code IllegalArgumentException}.
     * will succeed. Otherwise, it fails with {@link
     * CameraCaptureSession.StateCallback#onConfigureFailed}.
     * </ol>
     *
     * <p>To enable surface sharing, this function must be called before {@link