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

This commit is contained in:
TreeHugger Robot
2021-06-23 19:43:17 +00:00
committed by Android (Google) Code Review

View File

@@ -218,7 +218,12 @@ class SensorUseStartedActivity @Inject constructor(
} }
private fun disableSensorPrivacy() { private fun disableSensorPrivacy() {
sensorPrivacyController.setSensorBlocked(sensor, false) if (sensor == ALL_SENSORS) {
sensorPrivacyController.setSensorBlocked(MICROPHONE, false)
sensorPrivacyController.setSensorBlocked(CAMERA, false)
} else {
sensorPrivacyController.setSensorBlocked(sensor, false)
}
unsuppressImmediately = true unsuppressImmediately = true
setResult(RESULT_OK) setResult(RESULT_OK)
} }