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

Commit 6b6589ec authored by Evan Severson's avatar Evan Severson
Browse files

Fix unmuting both cam and mic at the same time

Test: Mute both sensors and open app which starts mic/cam use at the
same time
Fixes: 190468128

Change-Id: I738abe025f366f42b13b18c9e7593629691512eb
parent d616f1ed
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -218,7 +218,12 @@ class SensorUseStartedActivity @Inject constructor(
    }
    }


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