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

Commit 09e2c908 authored by KRIS CHEN's avatar KRIS CHEN Committed by Android (Google) Code Review
Browse files

Merge "Fix isAod flag in onAodInterrupt()" into main

parents fbbc678e 4340d7fb
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -1096,8 +1096,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) {