Skip to content
Commit 4393c7a5 authored by Yanting Yang's avatar Yanting Yang
Browse files

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
parent b82ba472
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment