Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31d5039b authored by Daniel Jacob Chittoor's avatar Daniel Jacob Chittoor Committed by Nishith Khanna
Browse files

biometrics: Skip unconfigureDisplay if mOnFingerDown

 * CMF Phone (1) has an issue where onPress the HAL is double-acquiring
   the fingerprint status which causes the userspace to pre-emptively
   unconfigure the display before the sensor has the time to scan the
   fingerprint.
parent fd06e577
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -916,6 +916,13 @@ public class UdfpsController implements DozeReceiver, Dumpable {
        if (!isOptical()) {
            return;
        }

        // Check if the fingerprint is still pressed before proceeding
        if (mOnFingerDown) {
            Log.v(TAG, "Fingerprint is still pressed; skipping unconfigureDisplay.");
            return;
        }

        if (DeviceEntryUdfpsRefactor.isEnabled()) {
            UdfpsTouchOverlay udfpsView = (UdfpsTouchOverlay) view;
            if (udfpsView.isDisplayConfigured()) {