Fix isProviderEnabled() on work profiles

isProviderEnabled() only allows for providers to be enabled for the
foreground user. It should take into account possible work profile users
as well. isLocationEnabled() needs to changes as settings are shared
across profiles.

Bug: 123511998
Test: manual
Change-Id: I86716106b226bb64ca8a613b2ed97666087b6fab
1 file changed