Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c40394f1 authored by Chandru S's avatar Chandru S Committed by Android (Google) Code Review
Browse files

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

parents 0a851488 df59e89f
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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
        }
+1 −1
Original line number Diff line number Diff line
@@ -99,7 +99,7 @@ class FaceScanningProviderFactory @Inject constructor(
    }

    fun shouldShowFaceScanningAnim(): Boolean {
        return canShowFaceScanningAnim() && keyguardUpdateMonitor.isFaceScanning
        return canShowFaceScanningAnim() && keyguardUpdateMonitor.isFaceDetectionRunning
    }
}