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

Commit 4340d7fb authored by Kris Chen's avatar Kris Chen
Browse files

Fix isAod flag in onAodInterrupt()

Bug: 299382291
Test: Manual, verified expected behavior on AOD
Test: atest UdfpsControllerTest
Change-Id: I600e2cef356a200560954658c3ef0c48c4d80cff
parent d0e3d74f
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -1094,8 +1094,19 @@ public class UdfpsController implements DozeReceiver, Dumpable {
            // cancel the fingerprint scan.
            mCancelAodFingerUpAction = mFgExecutor.executeDelayed(this::tryAodSendFingerUp,
                    AOD_SEND_FINGER_UP_DELAY_MILLIS);
            // using a hard-coded value for major and minor until it is available from the sensor
            onFingerDown(requestId, screenX, screenY, minor, major);
            // using a hard-coded value for orientation, time and gestureStart until they are
            // available from the sensor.
            onFingerDown(
                    requestId,
                    MotionEvent.INVALID_POINTER_ID /* pointerId */,
                    screenX,
                    screenY,
                    minor,
                    major,
                    0f /* orientation */,
                    0L /* time */,
                    0L /* gestureStart */,
                    true /* isAod */);
        };

        if (mScreenOn) {