Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ internal class LiveFeedbackFragment : Fragment(R.layout.fragment_live_feedback)
}

private fun renderFeedbackOnButton(state: LiveFeedbackState) = with(binding) {
val feedback = if (state.isAutoCapture && state.phase != LiveFeedbackState.Phase.CAPTURING) {
val feedback = if (state.isAutoCapture && vm.isAutoCaptureHeldOff) {
LiveFeedbackState.Feedback.NONE
} else {
state.feedback
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ internal class LiveFeedbackViewModel @Inject constructor(

private var captureImagingStartTime: Long = 0
private var validationStartTime: Long = 0
private var isAutoCaptureHeldOff = true
var isAutoCaptureHeldOff = true
private set
Comment thread
alexandr-simprints marked this conversation as resolved.
private var autoCaptureImagingTimeoutJob: Job? = null
private var autoCaptureImagingDurationMillis: Long = FACE_AUTO_CAPTURE_IMAGING_DURATION_MILLIS_DEFAULT
private lateinit var faceDetector: FaceDetector
Expand Down