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

Commit b36bbc55 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Settings] Pass the system user to launch the web help page" into sc-dev

parents 2b8678c5 8fca8dc0
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());