diff options
| author | 2021-06-23 19:43:17 +0000 | |
|---|---|---|
| committer | 2021-06-23 19:43:17 +0000 | |
| commit | 31bb5762d82d5b95edcf4c24c4aa5635776b469a (patch) | |
| tree | e85fb5ced0a69c86ba80df1d255d281fda2e707f | |
| parent | d5bda8a0d5bba190c3aad9c3fa944a79e49ee84c (diff) | |
| parent | 6b6589ec88de4fbc39bcba00e2ef154c731c87ae (diff) | |
Merge "Fix unmuting both cam and mic at the same time" into sc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/sensorprivacy/SensorUseStartedActivity.kt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/sensorprivacy/SensorUseStartedActivity.kt b/packages/SystemUI/src/com/android/systemui/sensorprivacy/SensorUseStartedActivity.kt index 06c1c6f8cefa..e6d48676dc03 100644 --- a/packages/SystemUI/src/com/android/systemui/sensorprivacy/SensorUseStartedActivity.kt +++ b/packages/SystemUI/src/com/android/systemui/sensorprivacy/SensorUseStartedActivity.kt @@ -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) } |