Remove duplicate method in KeyguardUpdateMonitor

Bug: 238187419
Test: atest KeyguardUpdateMonitor
Change-Id: I078aec41c15726aacb736fd8493645fa23856bd5
This commit is contained in:
Chandru
2022-10-21 13:58:31 +00:00
parent daa7365e9b
commit df59e89f27
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
}
}