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

Commit d9f21cc4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix an issue that the sensor privacy does not apply to the new camera...

Merge "Fix an issue that the sensor privacy does not apply to the new camera clients" am: 4afa0e26

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2287277



Change-Id: I8fedb4dd04ea7f102196d610cedb1535ae8dc396
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents af5152af 4afa0e26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3978,7 +3978,7 @@ binder::Status CameraService::SensorPrivacyPolicy::onSensorPrivacyChanged(
    int toggleType __unused, int sensor __unused, bool enabled) {
    {
        Mutex::Autolock _l(mSensorPrivacyLock);
        mSensorPrivacyEnabled = mSpm.isToggleSensorPrivacyEnabled(SensorPrivacyManager::TOGGLE_SENSOR_CAMERA);
        mSensorPrivacyEnabled = enabled;
    }
    // if sensor privacy is enabled then block all clients from accessing the camera
    if (enabled) {