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

Commit 35aa93d8 authored by Kevin Chyn's avatar Kevin Chyn
Browse files

Pass context and enforcedAdmin to onClickListener

These are apparently not available / not initialized in the
constructor. So, let's just pass it in from known entry points.

Bug: 188847063
Test: Builds
Change-Id: I5467f341ccf017ddfb31ef9fc4ef1756ebb65939
parent 0c34d259
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -80,7 +80,8 @@ public final class ActionDisabledByAdminDialogHelper {
            EnforcedAdmin enforcedAdmin) {
        AlertDialog.Builder builder = new AlertDialog.Builder(mActivity)
                .setPositiveButton(R.string.okay,
                        mActionDisabledByAdminController.getPositiveButtonListener())
                        mActionDisabledByAdminController
                                .getPositiveButtonListener(mActivity, enforcedAdmin))
                .setView(mDialogView);
        prepareDialogBuilder(builder, restriction, enforcedAdmin);
        return builder;