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

Commit afc59c79 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 am: 586e18cc

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

Change-Id: I41a82ce12fa6d49fc004c586738dd2ae9b97e4eb
parents bf6b06d5 586e18cc
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)
    }