public static TrackSessionFragment newInstance( Session session, CompletedWorkout completedWorkout, int position) { TrackSessionFragment fragment = new TrackSessionFragment(); Bundle args = new Bundle(); args.putLong("sessionId", session.getId()); args.putLong("completedWorkoutId", completedWorkout.getId()); args.putInt("position", position); fragment.setArguments(args); return fragment; }