Convert DialogFragmentListener to an inner interface.