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

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

Change-Id: I6290df0d2fcb4bc8181d26cccaadda39754c1613
This commit is contained in:
TreeHugger Robot
2021-06-23 19:58:41 +00:00
committed by Automerger Merge Worker

View File

@@ -218,7 +218,12 @@ class SensorUseStartedActivity @Inject constructor(
}
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
setResult(RESULT_OK)
}