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

Commit 807d81e0 authored by Joshua Mccloskey's avatar Joshua Mccloskey Committed by Android (Google) Code Review
Browse files

Merge "BiometricPrompt calls correct cam privacy API." into tm-dev

parents cc811102 8f7ad990
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -726,8 +726,8 @@ public class AuthController extends CoreStartable implements CommandQueue.Callba

        boolean isCameraPrivacyEnabled = false;
        if (error == BiometricConstants.BIOMETRIC_ERROR_HW_UNAVAILABLE
                && mSensorPrivacyManager.isSensorPrivacyEnabled(SensorPrivacyManager.Sensors.CAMERA,
                mCurrentDialogArgs.argi1 /* userId */)) {
                && mSensorPrivacyManager.isSensorPrivacyEnabled(
                SensorPrivacyManager.TOGGLE_TYPE_SOFTWARE, SensorPrivacyManager.Sensors.CAMERA)) {
            isCameraPrivacyEnabled = true;
        }
        // TODO(b/141025588): Create separate methods for handling hard and soft errors.