Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24cf8349 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android Git Automerger
Browse files

am ac9fbe9d: Merge "Do not vibrate if we don\'t have a fingerprint client" into mnc-dr-dev

* commit 'ac9fbe9d':
  Do not vibrate if we don't have a fingerprint client
parents d59f5c02 ac9fbe9d
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -589,10 +589,14 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
                result = true; // client not listening
                result = true; // client not listening
	    }
	    }
	    if (fpId == 0) {
	    if (fpId == 0) {
                if (receiver != null) {
                    FingerprintUtils.vibrateFingerprintError(getContext());
                    FingerprintUtils.vibrateFingerprintError(getContext());
                }
                result |= handleFailedAttempt(this);
                result |= handleFailedAttempt(this);
            } else {
            } else {
                if (receiver != null) {
                    FingerprintUtils.vibrateFingerprintSuccess(getContext());
                    FingerprintUtils.vibrateFingerprintSuccess(getContext());
                }
                result |= true; // we have a valid fingerprint
                result |= true; // we have a valid fingerprint
                mLockoutReset.run();
                mLockoutReset.run();
            }
            }