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

Commit c0aab441 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15105946

Change-Id: Ifc37331783f90bbb921d1eedaba9c8272a192e33
parents d8ab9708 b36bbc55
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());