Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Duplicate Biometric prompts #3842

Merged

Conversation

RoboMagus
Copy link
Contributor

Summary

Check if there's a pending unlock action before triggering a (new) biometric prompt to unlock the app.

Fix for #2222.

Screenshots

Link to pull request in Documentation repository

Documentation: home-assistant/companion.home-assistant#

Any other notes

This is definately a workaround, but as we have no influence on the onWindowFocusChanged calls being produced it seems to be a necessary one.

@jpelgrom
Copy link
Member

jpelgrom commented Sep 4, 2023

Shouldn't this also be added to the settings activity?

@RoboMagus
Copy link
Contributor Author

I've only been able to reproduce the issue when cold starting the app. So it should not be possible for this to be an issue in the settings.

@jpelgrom jpelgrom linked an issue Sep 4, 2023 that may be closed by this pull request
Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

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

Thanks for looking into this!

Personally I'm unable to reproduce the original issue and thus verify the fix, but the changes seem to be the right ones for the issue and app lock still works as expected.

@JBassett JBassett merged commit 54d5982 into home-assistant:master Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

biometric prompt sometimes appears twice
3 participants