Merge "Fix crash when trying to open app info page" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a43e978ffb
@@ -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)
|
||||
|
Reference in New Issue
Block a user