[MS-1544] Fixing issue with auto-capture. 'Start capture' now properly starts capturing - #1785
Merged
alexandr-simprints merged 1 commit intoAug 13, 2026
Conversation
…y starts capturing
alexandr-simprints
requested review from
BurningAXE,
alex-vt,
luhmirin-s and
meladRaouf
and
a lite review from Copilot
August 13, 2026 10:20
There was a problem hiding this comment.
Pull request overview
This PR addresses a regression in face auto-capture where tapping “Start capture” would not begin capturing until the second press, by adjusting how the UI/state machine treats the “auto-capture held off” period.
Changes:
- Exposes
isAutoCaptureHeldOfffromLiveFeedbackViewModel(read-only externally) so the UI can react to it. - Updates
LiveFeedbackFragmentbutton feedback rendering to suppress guidance only while auto-capture is explicitly held off (instead of keying offphase != CAPTURING).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| face/capture/src/main/java/com/simprints/face/capture/screens/livefeedback/LiveFeedbackViewModel.kt | Makes isAutoCaptureHeldOff externally readable to support correct auto-capture start behavior. |
| face/capture/src/main/java/com/simprints/face/capture/screens/livefeedback/LiveFeedbackFragment.kt | Uses the held-off flag when deciding whether to show guidance on the capture button in auto-capture mode. |
Suppressed comments (1)
face/capture/src/main/java/com/simprints/face/capture/screens/livefeedback/LiveFeedbackFragment.kt:318
renderFeedbackOnButtonnow depends onvm.isAutoCaptureHeldOff, which is outside theLiveFeedbackStatesingle-source-of-truth. This can lead to UI not re-rendering when onlyisAutoCaptureHeldOffchanges (nostateemission), and it breaks the stated deterministic rendering contract. Prefer carrying this flag inLiveFeedbackState(or exposing it as a Flow/StateFlow) and rendering purely fromstate.
val feedback = if (state.isAutoCapture && vm.isAutoCaptureHeldOff) {
LiveFeedbackState.Feedback.NONE
} else {
state.feedback
}
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
luhmirin-s
approved these changes
Aug 13, 2026
alexandr-simprints
deleted the
MS-1544-start-capture-doesnt-start-capture
branch
August 13, 2026 12:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



JIRA ticket
Will be released in: 2026.3.0
Root cause analysis (for bugfixes only)
First known affected version: 2026.2.0
Start capturebutton does not start capturing until pressed for the second time.start-capture-bug.mp4
Notable changes
Testing guidance
Additional work checklist