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

Commit 31bb5762 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix unmuting both cam and mic at the same time" into sc-dev

parents d5bda8a0 6b6589ec
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -218,7 +218,12 @@ class SensorUseStartedActivity @Inject constructor(
    }

    private fun disableSensorPrivacy() {
        if (sensor == ALL_SENSORS) {
            sensorPrivacyController.setSensorBlocked(MICROPHONE, false)
            sensorPrivacyController.setSensorBlocked(CAMERA, false)
        } else {
            sensorPrivacyController.setSensorBlocked(sensor, false)
        }
        unsuppressImmediately = true
        setResult(RESULT_OK)
    }