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

Enable to prevent device back button on Android 9 and above #6

Open
onlyrs4u opened this issue Apr 2, 2019 · 1 comment
Open

Enable to prevent device back button on Android 9 and above #6

onlyrs4u opened this issue Apr 2, 2019 · 1 comment

Comments

@onlyrs4u
Copy link

onlyrs4u commented Apr 2, 2019

I am implementing switchcompat when biometric is used.
When the biometric prompt is visible and without scanning fingerprint if user presses device back button, prompt gets dismissed.
How to prevent device back button when prompt is visible?
Need resolution asap.

@Sammekl
Copy link

Sammekl commented Apr 29, 2019

There's no solution for this currently. It's against material design to do such a thing, but if you really need something like this, a quick workaround would be to override onBackPressed() and show the prompt again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants