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

Commit 2e978ff9 authored by Daniel Jacob Chittoor's avatar Daniel Jacob Chittoor Committed by Sahil Sonar
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 b3bd0657
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -863,6 +863,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()) {
            if (mUdfpsDisplayMode != null) {
                mUdfpsDisplayMode.disable(null); // beverlt