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

Commit 7c570c8b authored by Lei Yu's avatar Lei Yu Committed by Android (Google) Code Review
Browse files

Merge "Add target fragment for RoamingDialogFragment"

parents 9b373eb7 2554d027
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1074,6 +1074,7 @@ public class MobileNetworkFragment extends DashboardFragment implements
                    Bundle b = new Bundle();
                    b.putInt(RoamingDialogFragment.SUB_ID_KEY, mSubId);
                    fragment.setArguments(b);
                    fragment.setTargetFragment(this, 0 /* requestCode */);
                    fragment.show(getFragmentManager(), ROAMING_TAG);
                    // Don't update the toggle unless the confirm button is actually pressed.
                    return false;
+0 −1
Original line number Diff line number Diff line
@@ -60,7 +60,6 @@ public class RoamingDialogFragment extends InstrumentedDialogFragment implements
        mSubId = args.getInt(SUB_ID_KEY);
        mCarrierConfigManager = new CarrierConfigManager(context);

        //TODO(b/114749736): set target fragment in host fragment
        Fragment fragment = getTargetFragment();
        try {
            mListener = (RoamingDialogListener) fragment;