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

Commit 9deb1fbf authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15081504

Change-Id: I982989cf5f738987b13034391a58fc37a57ce54e
parents c774c667 31bb5762
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)
    }