Skip to content

Updates LiveFeedbackFragment camera setup to use the correct resolution#1621

Open
meladRaouf wants to merge 2 commits intomainfrom
camer-resolution-fix
Open

Updates LiveFeedbackFragment camera setup to use the correct resolution#1621
meladRaouf wants to merge 2 commits intomainfrom
camer-resolution-fix

Conversation

@meladRaouf
Copy link
Collaborator

JIRA ticket
Will be released in: 2026.2.0

Root cause analysis (for bugfixes only)

First known affected version: Long time ago

  • targetResolution used for ImageAnalysis and Preview is being set to 0x0 because it is calculated before the captureOverlay view has been drawn.

Notable changes

  • Wrap camera setup in captureOverlay.doOnLayout, so the overlay size is available before configuring CameraX
  • Replace deprecated setTargetResolution(...) calls with ResolutionSelector and ResolutionStrategy

Testing guidance

  • Capture any face and you’ll notice that the camera preview now uses higher-resolution images.

Additional work checklist

  • Effect on other features and security has been considered
  • Design document marked as "In development" (if applicable)
  • External (Gitbook) and internal (Confluence) Documentation is up to date (or ticket created)
  • Test cases in Testiny are up to date (or ticket created)
  • Other teams notified about the changes (if applicable)

meladRaouf and others added 2 commits March 18, 2026 18:42
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@cla-bot cla-bot bot added the ... label Mar 18, 2026
@meladRaouf meladRaouf changed the title Camer resolution fix Updates LiveFeedbackFragment camera setup to use the correct resolution Mar 18, 2026
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant