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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user