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

Commit b1af897b authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Trigger udfps-start haptic on the first fingerDown

Previously, AOD interrupts wouldn't receive the start haptic

Test: manual
Fixes: 193556998
Change-Id: I5d467e8ea0feaca673341bead493c1cacc565028
parent ec392453
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -425,7 +425,6 @@ public class UdfpsController implements DozeReceiver {
                            mTouchLogTime = SystemClock.elapsedRealtime();
                            mPowerManager.userActivity(SystemClock.uptimeMillis(),
                                    PowerManager.USER_ACTIVITY_EVENT_TOUCH, 0);
                            playStartHaptic();
                            handled = true;
                        } else if (sinceLastLog >= MIN_TOUCH_LOG_INTERVAL) {
                            Log.v(TAG, "onTouch | finger move: " + touchInfo);
@@ -830,6 +829,9 @@ public class UdfpsController implements DozeReceiver {
            Log.w(TAG, "Null view in onFingerDown");
            return;
        }
        if (!mOnFingerDown) {
            playStartHaptic();
        }
        mOnFingerDown = true;
        mFingerprintManager.onPointerDown(mSensorProps.sensorId, x, y, minor, major);
        Trace.endAsyncSection("UdfpsController.e2e.onPointerDown", 0);