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

Commit b89d4e55 authored by Akash Malik's avatar Akash Malik Committed by Android (Google) Code Review
Browse files

Merge "Use ERROR_CAMERA_DISCONNECTED on id remap" into udc-qpr-dev

parents d8b7e361 c2d11e13
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -840,10 +840,8 @@ void CameraService::remapCameraIds(const TCameraIdRemapping& cameraIdRemapping)
    }

    for (auto& clientSp : clientsToDisconnect) {
        // We send up ERROR_CAMERA_DEVICE so that the app attempts to reconnect
        // automatically. Note that this itself can cause clientSp->disconnect() based on the
        // app's response.
        clientSp->notifyError(hardware::camera2::ICameraDeviceCallbacks::ERROR_CAMERA_DEVICE,
        // Notify the clients about the disconnection.
        clientSp->notifyError(hardware::camera2::ICameraDeviceCallbacks::ERROR_CAMERA_DISCONNECTED,
                CaptureResultExtras{});
    }