Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8fca8dc0 authored by arangelov's avatar arangelov
Browse files

[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
parent 0fcac8bf
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@ public class ActionDisabledLearnMoreButtonLauncherImplTest {

    @Test
    public void showHelpPage_works() {
        mImpl.showHelpPage(mActivity, URL);
        mImpl.showHelpPage(mActivity, URL, CONTEXT_USER);

        verify(mActivity).startActivityAsUser(mIntentCaptor.capture(), eq(CONTEXT_USER));
        assertActionViewIntent(mIntentCaptor.getValue());