diff options
| author | 2023-06-22 15:13:49 -0400 | |
|---|---|---|
| committer | 2023-06-22 15:43:45 -0400 | |
| commit | 514f25bbf459230f6b52647ba0dcb88ab4e51825 (patch) | |
| tree | 544ffda184c819d4f0bcd8b2fe69c53513523af1 /libs/androidfw/ObbFile.cpp | |
| parent | c268174cb015afcfb216fde58235215e9583f1a1 (diff) | |
Fix NightDisplayListener in AutoTileManager
Before this change, NightDisplayListener was injected once (on SystemUI
start) and it was associated with the user upon creation. This had two
problems:
* The user didn't change when the actual user changed, meaning that it
couldn't track changes in the state for a different user.
* If the user associated with it was removed (and its Settings removed),
then when the user changed it will try to reregister and fail.
To fix this, inject a builder and always create a NightDisplayListener
for the proper user.
Also, when QS_PIPELINE_NEW_HOST is true and QS_PIPELINE_AUTO_ADD is
false, the user changes were not propagated to AutoTileManager. This is
fixed in this CL.
Test: manual
Test: atest AutoTileManager QSTileHost
Fixes: 288403490
Change-Id: Iffb0d9b25ad36b599e9e4e4424985197435b4c8f
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions