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

Commit 055eafd6 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Do not vibrate if we don't have a fingerprint client

Bug: 22851337
Change-Id: Ia7be6eda2db08b4df07a48ffa4d24637f59167e9
parent aabab270
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -589,10 +589,14 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
                result = true; // client not listening
	    }
	    if (fpId == 0) {
                if (receiver != null) {
                    FingerprintUtils.vibrateFingerprintError(getContext());
                }
                result |= handleFailedAttempt(this);
            } else {
                if (receiver != null) {
                    FingerprintUtils.vibrateFingerprintSuccess(getContext());
                }
                result |= true; // we have a valid fingerprint
                mLockoutReset.run();
            }