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

Commit f267dd1d authored by Ruben Brunk's avatar Ruben Brunk Committed by Android (Google) Code Review
Browse files

Merge "Fix CameraService error flag when running HAL1 with API2." into klp-dev

parents 8144585c 6462be7f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ public class CameraBinderDecorator {
    public static final int EACCES = -13;
    public static final int EBUSY = -16;
    public static final int ENODEV = -19;
    public static final int ENOTSUP = -129;
    public static final int EOPNOTSUPP = -95;

    private static class CameraBinderDecoratorListener implements Decorator.DecoratorListener {

@@ -86,7 +86,7 @@ public class CameraBinderDecorator {
                    case ENODEV:
                        UncheckedThrow.throwAnyException(new CameraRuntimeException(
                                CAMERA_DISCONNECTED));
                    case ENOTSUP:
                    case EOPNOTSUPP:
                        UncheckedThrow.throwAnyException(new CameraRuntimeException(
                                CAMERA_DEPRECATED_HAL));
                }