Description
When FingerLock is initialized after previously registered fingerprints were deleted from Android Settings produces an unexpected error. The error returned is FINGERPRINT_NOT_SUPPORTED, when it should be FINGERPRINT_REGISTRATION_NEEDED
Steps To Reproduce
- Register a fingerprint with device in Android settings.
- Calling
FingerPrintManager.start() should work as expected with successful fingerprint scan.
- Stop the App.
- Go into Android Settings and remove all registered Fingerprints.
- Restart the App and perform a
FingerprintManager.initalize()
Expected Result
onFingerLockError() should fire with FingerLockErrorState == FINGERPRINT_REGISTRATION_NEEDED
Actual Result
onFingerLockError() fires but FingerLockErrorState == FINGERPRINT_NOT_SUPPORTED