Пример #1
0
 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;
 }
Пример #2
0
 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;
 }