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

* commit '24cf83494844f1ce3c247660af61307366330c80':
  Do not vibrate if we don't have a fingerprint client
This commit is contained in:
Jorim Jaggi
2015-08-13 02:10:42 +00:00
committed by Android Git Automerger

View File

@@ -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();
} }