Fix an issue for work profiles (or any profile with a shared UI).
If a profile shares its UI with another profile then the launcher runs
on a different userId, this caused some checks to fail.
Removed one useless check about package name and adjusted the second to
consider the profile parent instead if it exists.
Bug: N/A (just found it)
Test: manually (this wasn't caught by CTS tests because in tests we have to set
the default launcher manually first in the test itself)
Change-Id: I5f09f90a0807efb1f49d82e4326ade026748f2c4
1 file changed