Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac2e5a04 authored by Chun Yuan's avatar Chun Yuan Committed by Mikhail Naganov
Browse files

AudioPolicyService: Fix SensorPrivacyPolicy guard logic

The current SensorPrivacyPolicy callback only takes effect
when sensors are turned off from the developer option.
By registering the toggle releated listener the callback
would also be triggered when user turn on/off Mic from
settings->privacy->microphone.

Bug: 437880739
Test: Manual test with bench setup
Flag: EXEMPT bugfix
(cherry picked from https://android-review.googlesource.com/q/commit:7d7496ccc89949819b96acc29f74e0fcb32dddee)
Change-Id: I8c606a73cf49859e3fba17e9a153d51a6d7599cc
parent afa1cda7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment