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
fourteen-wip
jabashque 2 years ago committed by Simon1511
parent 539a28de28
commit f5289c2f5c
  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