Merge "Remove duplicate method in KeyguardUpdateMonitor" into tm-qpr-dev
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ class FaceScanningProviderFactory @Inject constructor(
|
||||
}
|
||||
|
||||
fun shouldShowFaceScanningAnim(): Boolean {
|
||||
return canShowFaceScanningAnim() && keyguardUpdateMonitor.isFaceScanning
|
||||
return canShowFaceScanningAnim() && keyguardUpdateMonitor.isFaceDetectionRunning
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user