commit | c90507e49601d9cd1ade53db46eb4af747a6f80e | [log] [tgz] |
---|---|---|
author | Ilya Matyukhin <ilyamaty@google.com> | Tue Aug 20 15:38:57 2019 -0700 |
committer | Ilya Matyukhin <ilyamaty@google.com> | Wed Aug 21 06:44:34 2019 +0000 |
tree | bee6588cbfb63a9b1ae9f1e80f88129a404ad061 | |
parent | f3395734e815e37fb8f41ed120c320e1305f97cf [diff] |
Treat SENSOR_DIRTY as user not detected Bug: 139620163 Test: no double vibration on authentication timeout while the sensor is covered. Change-Id: I26ec9ca0f911fb029eb9175fe1923c8e9a27e693
diff --git a/services/core/java/com/android/server/biometrics/face/FaceService.java b/services/core/java/com/android/server/biometrics/face/FaceService.java index a706521..ee49f58 100644 --- a/services/core/java/com/android/server/biometrics/face/FaceService.java +++ b/services/core/java/com/android/server/biometrics/face/FaceService.java
@@ -223,7 +223,8 @@ @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