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

Commit 0d9fdc24 authored by Zhijun He's avatar Zhijun He Committed by Android (Google) Code Review
Browse files

Merge "Camera2: replace EDQUOT with EUSERS" into klp-dev

parents 89e1fec9 9bd5f1e6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -51,7 +51,7 @@ public class CameraBinderDecorator {
    public static final int EBUSY = -16;
    public static final int ENODEV = -19;
    public static final int EOPNOTSUPP = -95;
    public static final int EDQUOT = -122;
    public static final int EUSERS = -87;

    private static class CameraBinderDecoratorListener implements Decorator.DecoratorListener {

@@ -85,7 +85,7 @@ public class CameraBinderDecorator {
                    case EBUSY:
                        UncheckedThrow.throwAnyException(new CameraRuntimeException(
                                CAMERA_IN_USE));
                    case EDQUOT:
                    case EUSERS:
                        UncheckedThrow.throwAnyException(new CameraRuntimeException(
                                MAX_CAMERAS_IN_USE));
                    case ENODEV: