summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Fabián Kozynski <kozynski@google.com> 2024-02-22 09:38:51 -0500
committer Fabián Kozynski <kozynski@google.com> 2024-02-22 09:45:37 -0500
commit690f120488114e527514f8e6055db05fe7461fbb (patch)
tree265ac07cdff4992f2eeb968d7b2b93797f625f91 /libs/hwui/FrameInfoVisualizer.cpp
parent26e8904432cf5a54e81cdf4f7eee936f5c56cbdf (diff)
Fix issue with auto-adding work tile
When a work profile is created, it is first created as disabled, and then enabled when it's verified (all this done by DPM). ManagedProfileControllerImpl, which is what WorkModeTile uses to verify that there's a work profile available, only returns true if there's an Enabled work profile. However, WorkTileAutoAddable was adding the tile when the profile was created, regardless of the enabled state. This made it so the tile was immediately destroyed if auto-added. With this change, we explicitly require in WorkTileAutoAddable that the profile is enabled, matching what ManagedProfileControllerImpl does and also the correct behavior. UserTracker will send a profiles changed both when the profile is added as disabled and when it's enabled, so that is not a problem. Test: atest WorkTileAutoAddableTest Test: manual, create a work profile first as disabled and then enable it Flag: ACONFIG com.android.systemui.qs_new_pipeline NEXTFOOD Fixes: 325595352 Change-Id: Ib741135315e7a4787049129ba2918bd68bc7484b
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions