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

Catch errors when getting FingerprintManager #38

Merged
merged 3 commits into from
Feb 8, 2017
Merged

Catch errors when getting FingerprintManager #38

merged 3 commits into from
Feb 8, 2017

Conversation

Mauin
Copy link
Owner

@Mauin Mauin commented Feb 8, 2017

As the Fingerprint APIs could be completely removed from the OS on some devices this catches exceptions when getting the FingerprintManager so that it returns null instead.

This should ensure that calling RxFingerprint.isAvailable() will correctly return false for devices on Marshmallow or higher that do not have any Fingerprint API classes.

@Mauin Mauin merged commit 636063d into master Feb 8, 2017
@Mauin Mauin deleted the fm_nullcheck branch February 8, 2017 18:28
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.

1 participant