diff options
author | Evan Severson <evanseverson@google.com> | 2021-07-22 13:03:13 -0700 |
---|---|---|
committer | Evan Severson <evanseverson@google.com> | 2021-07-23 15:31:53 -0700 |
commit | 8f7f7ab98aec9cdd61718e352dd821dc3079bd2a (patch) | |
tree | 54d6a4b395b79befe4c0e7bc738b60f080782195 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | ba1e18b5c7e83571711f5cea12eb5811635b81ad (diff) |
Update mic/cam quicksetting toggles when user changes
On a secondary/guest user the mic/cam toggles show for user 0. We want
the user-free calls to reflect the state of the current user so things
like the UI is accurate. Before this change the user free calls always
checked for user 0 since the context was cached in SensorPrivacyManager.
This change also fixes some issues with removing listeners.
Test: use toggles on main, work profile, and secondary user
atest CtsSensorPrivacyTestCases --user-type secondary_user
Fixes: 178751362
Change-Id: Ieb90ea7ba4074446eb01d1093e280ac7018f9e73
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions