Trigger udfps-start haptic on the first fingerDown

Previously, AOD interrupts wouldn't receive the start haptic

Test: manual
Fixes: 193556998
Change-Id: I5d467e8ea0feaca673341bead493c1cacc565028
This commit is contained in:
Beverly
2021-07-14 10:28:09 -04:00
committed by Beverly Tai
parent ec39245382
commit b1af897b68

View File

@@ -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);