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

Commit 542edd6d authored by Yin-Chia Yeh's avatar Yin-Chia Yeh Committed by android-build-merger
Browse files

Merge "Camera: fix legacy device CTS failure" into oc-mr1-dev am: 0cfad575

am: df7d8550

Change-Id: I945d6ef3bad30a96c1ff1457b793bf5270e6950e
parents 4f404af6 df7d8550
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -504,12 +504,18 @@ public class CameraDeviceUserShim implements ICameraDeviceUser {
        if (mLegacyDevice.isClosed()) {
            String err = "Cannot end configure, device has been closed.";
            Log.e(TAG, err);
            synchronized(mConfigureLock) {
                mConfiguring = false;
            }
            throw new ServiceSpecificException(ICameraService.ERROR_DISCONNECTED, err);
        }

        if (operatingMode != ICameraDeviceUser.NORMAL_MODE) {
            String err = "LEGACY devices do not support this operating mode";
            Log.e(TAG, err);
            synchronized(mConfigureLock) {
                mConfiguring = false;
            }
            throw new ServiceSpecificException(ICameraService.ERROR_ILLEGAL_ARGUMENT, err);
        }