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

Commit 58485909 authored by Ravneet's avatar Ravneet
Browse files

CameraService: Use intended iterator when getting remapped keys

- Use the correct iterator to access elements when checking for
removal of keys remapped by RotationAndCrop mappers. Currently, the
iterator for distortionMappers is inaccurately being used for this
check.

Bug: 270474475
Test: CTS test
Change-Id: I095b03d284c49a94c70dd269f634d195ee3fb308
parent c8658320
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -260,7 +260,7 @@ void sendPartialCaptureResult(CaptureOutputStates& states,

    auto mapper = states.rotateAndCropMappers.find(states.cameraId.c_str());
    if (mapper != states.rotateAndCropMappers.end()) {
        const auto& remappedKeys = iter->second.getRemappedKeys();
        const auto& remappedKeys = mapper->second.getRemappedKeys();
        keysToRemove.insert(remappedKeys.begin(), remappedKeys.end());
    }