Do not vibrate if we don't have a fingerprint client
Bug: 22851337 Change-Id: Ia7be6eda2db08b4df07a48ffa4d24637f59167e9
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