Treat SENSOR_DIRTY as user not detected

Bug: 139620163
Test: no double vibration on authentication timeout while the sensor
is covered.

Change-Id: I26ec9ca0f911fb029eb9175fe1923c8e9a27e693
This commit is contained in:
Ilya Matyukhin
2019-08-20 15:38:57 -07:00
parent f3395734e8
commit c90507e496

View File

@@ -223,7 +223,8 @@ public class FaceService extends BiometricServiceBase {
@Override
public boolean wasUserDetected() {
return mLastAcquire != FaceManager.FACE_ACQUIRED_NOT_DETECTED;
return mLastAcquire != FaceManager.FACE_ACQUIRED_NOT_DETECTED
&& mLastAcquire != FaceManager.FACE_ACQUIRED_SENSOR_DIRTY;
}
@Override