Merge "Remove duplicate method in KeyguardUpdateMonitor" into tm-qpr-dev

This commit is contained in:
Chandru S
2022-10-21 21:51:51 +00:00
committed by Android (Google) Code Review
3 changed files with 2 additions and 6 deletions

View File

@@ -2380,10 +2380,6 @@ public class KeyguardUpdateMonitor implements TrustManager.TrustListener, Dumpab
stopListeningForFace(FACE_AUTH_STOPPED_USER_INPUT_ON_BOUNCER);
}
public boolean isFaceScanning() {
return mFaceRunningState == BIOMETRIC_STATE_RUNNING;
}
private void updateFaceListeningState(int action, @NonNull FaceAuthUiEvent faceAuthUiEvent) {
// If this message exists, we should not authenticate again until this message is
// consumed by the handler

View File

@@ -123,7 +123,7 @@ class FaceScanningOverlay(
}
override fun enableShowProtection(show: Boolean) {
val showScanningAnimNow = keyguardUpdateMonitor.isFaceScanning && show
val showScanningAnimNow = keyguardUpdateMonitor.isFaceDetectionRunning && show
if (showScanningAnimNow == showScanningAnim) {
return
}

View File

@@ -99,7 +99,7 @@ class FaceScanningProviderFactory @Inject constructor(
}
fun shouldShowFaceScanningAnim(): Boolean {
return canShowFaceScanningAnim() && keyguardUpdateMonitor.isFaceScanning
return canShowFaceScanningAnim() && keyguardUpdateMonitor.isFaceDetectionRunning
}
}