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

Commit 68dbf2de authored by Kwangkyu Park's avatar Kwangkyu Park
Browse files

Camera: Fix camera id equal check

String type camera is being check with plain equality operator.
Change it to the proper equals() methods.

Bug: 356986790
Test: manual test by specifying logical id as physical id
Change-Id: I4fa82056a9219f7bcdc2e8856fe9742a65f41d75
parent 37d1bca6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -849,7 +849,7 @@ public class CameraDeviceImpl extends CameraDevice
            checkIfCameraClosedOrInError();

            for (String physicalId : physicalCameraIdSet) {
                if (physicalId == getId()) {
                if (Objects.equals(physicalId, getId())) {
                    throw new IllegalStateException("Physical id matches the logical id!");
                }
            }