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

Commit 8f7ad990 authored by Joshua Mccloskey's avatar Joshua Mccloskey
Browse files

BiometricPrompt calls correct cam privacy API.

Test: Verified with BiometricPrompt, Face enrolled, camera disabled,
that the prompt now shows the proper error message:
Bug: 220996930

Change-Id: Iee5587e008924633bca76074ca2d248314355733
parent f6051391
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.