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
Loading