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

Commit 9bd5f1e6 authored by Zhijun He's avatar Zhijun He
Browse files

Camera2: replace EDQUOT with EUSERS

Bug: 10838065
Change-Id: Ib450fcfffecec210c7f11842bf024abd7889bad7
parent f9b70ab8
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: