Skip to content

[MS-831] Ensure audio alerts play immediately#995

Merged
meladRaouf merged 1 commit into
release/2024.2.1from
scanner-concurrent-execution
Nov 28, 2024
Merged

[MS-831] Ensure audio alerts play immediately#995
meladRaouf merged 1 commit into
release/2024.2.1from
scanner-concurrent-execution

Conversation

@meladRaouf
Copy link
Copy Markdown
Collaborator

No description provided.

@cla-bot cla-bot Bot added the ... label Nov 28, 2024
@meladRaouf meladRaouf requested review from a team, BurningAXE, TristramN, alex-vt, alexandr-simprints, luhmirin-s and ybourgery and removed request for a team November 28, 2024 08:17
@meladRaouf meladRaouf force-pushed the scanner-concurrent-execution branch from 1935bf1 to 07545e4 Compare November 28, 2024 09:17
@meladRaouf meladRaouf merged commit 86d4969 into release/2024.2.1 Nov 28, 2024
@sonarqubecloud
Copy link
Copy Markdown

private suspend fun setUiAfterScan(isGoodScan: Boolean) {
// Check if the previous state was ScanCompleted to avoid displaying the bad or good scan UI twice
// There's no need to check the configuration, as the good/bad scan visual notifications apply across all LED modes.
if (previousState == FingerprintScanState.ScanCompleted) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to check previous state anymore?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I discovered that this check was part of an old implementation where FingerprintScanState.ScanCompleted was being sent twice, which is not valid now.

@luhmirin-s luhmirin-s deleted the scanner-concurrent-execution branch February 17, 2025 14:10
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.

3 participants