am 6fe7883f: am 4846c62a: am 24cf8349: am ac9fbe9d: Merge "Do not vibrate if we don\'t have a fingerprint client" into mnc-dr-dev
* commit '6fe7883f0b164352fb9976d8597e7d0e7b0fe152': Do not vibrate if we don't have a fingerprint client
This commit is contained in:
@@ -589,10 +589,14 @@ public class FingerprintService extends SystemService implements IBinder.DeathRe
|
||||
result = true; // client not listening
|
||||
}
|
||||
if (fpId == 0) {
|
||||
FingerprintUtils.vibrateFingerprintError(getContext());
|
||||
if (receiver != null) {
|
||||
FingerprintUtils.vibrateFingerprintError(getContext());
|
||||
}
|
||||
result |= handleFailedAttempt(this);
|
||||
} else {
|
||||
FingerprintUtils.vibrateFingerprintSuccess(getContext());
|
||||
if (receiver != null) {
|
||||
FingerprintUtils.vibrateFingerprintSuccess(getContext());
|
||||
}
|
||||
result |= true; // we have a valid fingerprint
|
||||
mLockoutReset.run();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user