public static ProbMenuFragment newInstance(ProblemWSType infoP, String tk) { ProbMenuFragment fragment = new ProbMenuFragment(); Bundle args = new Bundle(); args.putString("TOKEN", tk); fragment.setArguments(args); infoProblem = infoP; idSearch = infoProblem.num; return fragment; }
public static ProbMenuFragment newInstance(int id, String tk) { ProbMenuFragment fragment = new ProbMenuFragment(); Bundle args = new Bundle(); args.putString("TOKEN", tk); fragment.setArguments(args); idSearch = id; infoProblem = null; return fragment; }