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

Commit 00e742bb authored by Daniel Jacob Chittoor's avatar Daniel Jacob Chittoor Committed by Mohammed Althaf T
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.

 * Guard unconfigureDisplay skip against mIsUdfpsNodeFeatureEnabled

Co-Authored-By: default avatarSahilSonar <sss.sonar2003@gmail.com>
parent c27833e7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -909,6 +909,12 @@ public class UdfpsController implements DozeReceiver, Dumpable {
        if (udfpsView.isDisplayConfigured()) {
            udfpsView.unconfigureDisplay();
        }

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

    /**