mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 08:23:00 +01:00
The new camera implementation always bound all four CameraX use cases (preview, image capture, video capture, and image analysis) regardless of device capabilities. On devices with LEGACY camera hardware level, this causes image capture to fail with "Capture request failed with reason ERROR" because the hardware cannot handle that many simultaneous use cases. This change makes video capture and QR scanning use case binding conditional based on CameraXModePolicy, which already determines device capabilities. Video capture is only bound when the device supports mixed mode (image + video simultaneously). QR scanning analysis is only bound when explicitly requested.