Merge "Include all components in VR initialization." into nyc-mr1-dev

This commit is contained in:
Ruben Brunk
2016-07-13 19:02:25 +00:00
committed by Android (Google) Code Review

View File

@@ -246,7 +246,9 @@ public class EnabledComponentsObserver implements SettingChangeListener {
Intent queryIntent = new Intent(serviceName);
List<ResolveInfo> installedServices = pm.queryIntentServicesAsUser(
queryIntent,
PackageManager.GET_SERVICES | PackageManager.GET_META_DATA,
PackageManager.GET_SERVICES | PackageManager.GET_META_DATA |
PackageManager.MATCH_DIRECT_BOOT_AWARE |
PackageManager.MATCH_DIRECT_BOOT_UNAWARE,
userId);
if (installedServices != null) {
for (int i = 0, count = installedServices.size(); i < count; i++) {