sm7125: fingerprint: call onFingerUp() on error

The way the fingerprint service handles FINGERPRINT_ERROR messages
allows for situations where the user can end up with HBM enabled even though enrolling threw an error.

Fix this by calling `onFingerUp()` when handling FINGERPRINT_ERROR
messages.

Change-Id: I7bb7d9054eb1eac412a05f63b3feb621ca21fe24
tirimbino
jabashque 2 years ago committed by Ruchit Marathe
parent 9e97589b8d
commit 212c843d73
  1. 1
      fingerprint/BiometricsFingerprint.cpp

@ -388,6 +388,7 @@ void SehBiometricsFingerprint::notify(const fingerprint_msg_t* msg) {
if (!thisPtr->mClientCallback->onError(devId, result, vendorCode).isOk()) {
LOG(ERROR) << "failed to invoke fingerprint onError callback";
}
getInstance()->onFingerUp();
} break;
case FINGERPRINT_ACQUIRED: {
int32_t vendorCode = 0;

Loading…
Cancel
Save