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

Commit 5882b032 authored by Jyoti Bhayana's avatar Jyoti Bhayana
Browse files

Fix bug when camera privacy toggle is unsupported

When config_supportsCamToggle is false,then the
camera privacy api was incorrectly reporting that camera
privacy is enabled.

Bug: 335544036
Test: Set config_supportsCamToggle to false and verify the camera
preview is working fine using Camera app.

Change-Id: Idd739a4833a0bbd99066187f6039b0300c5e05be
parent 2a4f1676
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5114,7 +5114,7 @@ bool CameraService::SensorPrivacyPolicy::isCameraPrivacyEnabled() {

bool CameraService::SensorPrivacyPolicy::isCameraPrivacyEnabled(const String16& packageName) {
    if (!hasCameraPrivacyFeature()) {
        return SensorPrivacyManager::DISABLED;
        return false;
    }
    return mSpm.isCameraPrivacyEnabled(packageName);
}