Merge "Fix unmuting both cam and mic at the same time" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
31bb5762d8
@@ -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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user