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

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

Change-Id: I41a82ce12fa6d49fc004c586738dd2ae9b97e4eb
This commit is contained in:
TreeHugger Robot
2021-06-23 20:17:36 +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)
}