diff options
author | Yanting Yang <yantingyang@google.com> | 2020-08-05 22:43:48 +0800 |
---|---|---|
committer | Yanting Yang <yantingyang@google.com> | 2020-08-07 17:40:16 +0800 |
commit | 4393c7a5622c9472848099f0da6306d7e999597e (patch) | |
tree | 60174475e48518a51b181b96c32d5ff4ae021610 /libs/hwui/service/GraphicsStatsService.cpp | |
parent | b82ba472f7d96f564432c53fd40241744582b915 (diff) |
Skip loading tiles from non-current user if primary profile only
Symptom:
Disabling an injected activity or provider can't remove the tile
entirely. The tile is still shown if the device has a work profile.
Root cause:
Settings loads tiles from all injected components of all users via
PackageManager. When an injected app disables its component of current
user to remove tiles, the component for the work profile user is still
enabled. Therefore the tiles are still loaded.
Solution:
Skip loading tiles from non-current user if the injected component is
tagged "primary_profile_only".
Bug: 161885575
Test: make RunSettingsLibRoboTests
Change-Id: I00338204ddccfcbcf84a3eed34e6b8f8d5829d56
Diffstat (limited to 'libs/hwui/service/GraphicsStatsService.cpp')
0 files changed, 0 insertions, 0 deletions