[Settings] Pass the system user to launch the web help page

Fixes: 191727929
Test: manually observed the policy transparency dialog
with launching the admin policies screen
Test: manually observed the policy transparency dialog
with launching the web help page

Change-Id: If0d10b30a5e5f2a1bade168f049c8613055289e7
This commit is contained in:
arangelov
2021-06-25 18:54:28 +01:00
parent 0fcac8bf0d
commit 8fca8dc092
2 changed files with 3 additions and 2 deletions

View File

@@ -65,7 +65,8 @@ public final class ActionDisabledByAdminDialogHelper {
R.layout.admin_support_details_dialog, null);
mActionDisabledByAdminController = ActionDisabledByAdminControllerFactory
.createInstance(mActivity, restriction,
new DeviceAdminStringProviderImpl(mActivity));
new DeviceAdminStringProviderImpl(mActivity),
UserHandle.SYSTEM);
}
private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) {