Merge "Fix crash when trying to open app info page" into rvc-dev am: a43e978ffb

Change-Id: I69545cdbae3df0ed5b21c6f94b00352fa8f6c5c2
This commit is contained in:
TreeHugger Robot
2020-04-01 21:56:19 +00:00
committed by Automerger Merge Worker
2 changed files with 19 additions and 2 deletions

View File

@@ -240,6 +240,9 @@ public class InteractAcrossProfilesDetails extends AppInfoBase
Context context, String packageName) {
UserManager userManager = context.getSystemService(UserManager.class);
UserHandle workProfile = InteractAcrossProfilesSettings.getWorkProfile(userManager);
if (workProfile == null) {
return false;
}
UserHandle personalProfile = userManager.getProfileParent(workProfile);
return context.getSystemService(
CrossProfileApps.class).canConfigureInteractAcrossProfiles(packageName)