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
Loading
Please register or sign in to comment