Merge "Initialize mLastAcquire, and check against it in wasUserDetected" into sc-dev
This commit is contained in:
@@ -68,7 +68,7 @@ class FaceAuthenticationClient extends AuthenticationClient<ISession> implements
|
|||||||
private final int[] mKeyguardIgnoreList;
|
private final int[] mKeyguardIgnoreList;
|
||||||
private final int[] mKeyguardIgnoreListVendor;
|
private final int[] mKeyguardIgnoreListVendor;
|
||||||
|
|
||||||
private int mLastAcquire;
|
@FaceManager.FaceAcquired private int mLastAcquire = FaceManager.FACE_ACQUIRED_UNKNOWN;
|
||||||
|
|
||||||
FaceAuthenticationClient(@NonNull Context context,
|
FaceAuthenticationClient(@NonNull Context context,
|
||||||
@NonNull LazyDaemon<ISession> lazyDaemon, @NonNull IBinder token,
|
@NonNull LazyDaemon<ISession> lazyDaemon, @NonNull IBinder token,
|
||||||
@@ -127,7 +127,8 @@ class FaceAuthenticationClient extends AuthenticationClient<ISession> implements
|
|||||||
// Do not provide haptic feedback if the user was not detected, and an error (usually
|
// Do not provide haptic feedback if the user was not detected, and an error (usually
|
||||||
// ERROR_TIMEOUT) is received.
|
// ERROR_TIMEOUT) is received.
|
||||||
return mLastAcquire != FaceManager.FACE_ACQUIRED_NOT_DETECTED
|
return mLastAcquire != FaceManager.FACE_ACQUIRED_NOT_DETECTED
|
||||||
&& mLastAcquire != FaceManager.FACE_ACQUIRED_SENSOR_DIRTY;
|
&& mLastAcquire != FaceManager.FACE_ACQUIRED_SENSOR_DIRTY
|
||||||
|
&& mLastAcquire != FaceManager.FACE_ACQUIRED_UNKNOWN;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user