|
@@ -176,18 +176,22 @@ class XiaomiSm8450UdfpsHander : public UdfpsHandler {
|
|
|
|
|
|
void onFingerDown(uint32_t /*x*/, uint32_t /*y*/, float /*minor*/, float /*major*/) {
|
|
|
LOG(INFO) << __func__;
|
|
|
+ // Ensure touchscreen is aware of the press state, ideally this is not needed
|
|
|
setFingerDown(true);
|
|
|
}
|
|
|
|
|
|
void onFingerUp() {
|
|
|
LOG(INFO) << __func__;
|
|
|
+ // Ensure touchscreen is aware of the press state, ideally this is not needed
|
|
|
setFingerDown(false);
|
|
|
}
|
|
|
|
|
|
void onAcquired(int32_t result, int32_t vendorCode) {
|
|
|
LOG(INFO) << __func__ << " result: " << result << " vendorCode: " << vendorCode;
|
|
|
if (result == FINGERPRINT_ACQUIRED_GOOD) {
|
|
|
+ // Set finger as up to disable HBM already, even if the finger is still pressed
|
|
|
setFingerDown(false);
|
|
|
+
|
|
|
if (!enrolling) {
|
|
|
setFodStatus(FOD_STATUS_OFF);
|
|
|
}
|