From ff77a0471048c3bb1ed825813e79f839b3a87580 Mon Sep 17 00:00:00 2001 From: Philipp Crocoll Date: Wed, 25 May 2016 05:24:47 +0200 Subject: [PATCH] fix issue with QuickUnlock and Note 4 (hopefully) --- src/keepass2android/QuickUnlock.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/keepass2android/QuickUnlock.cs b/src/keepass2android/QuickUnlock.cs index 159080ab..f9c245f3 100644 --- a/src/keepass2android/QuickUnlock.cs +++ b/src/keepass2android/QuickUnlock.cs @@ -214,10 +214,11 @@ namespace keepass2android if (_fingerprintPermissionGranted) { FingerprintModule fpModule = new FingerprintModule(this); - _fingerprintIdentifier = new FingerprintDecryption(fpModule, App.Kp2a.GetDb().CurrentFingerprintPrefKey, this, - App.Kp2a.GetDb().CurrentFingerprintPrefKey); + if (fpModule.FingerprintManager.IsHardwareDetected) //see FingerprintSetupActivity + _fingerprintIdentifier = new FingerprintDecryption(fpModule, App.Kp2a.GetDb().CurrentFingerprintPrefKey, this, + App.Kp2a.GetDb().CurrentFingerprintPrefKey); } - else + if (_fingerprintIdentifier == null) { try {