Github user therajanmaurya commented on a diff in the pull request:
https://github.com/apache/incubator-taverna-mobile/pull/23#discussion_r71683278
--- Diff:
app/src/main/java/org/apache/taverna/mobile/ui/favouriteworkflow/FavouriteWorkflowsFragment.java
---
@@ -121,12 +139,25 @@ public void onClick(View view) {
@Override
public void showWorkflows(List<Workflow> workflowList) {
- mFavouriteWorkflowsAdapter = new
FavouriteWorkflowsAdapter(workflowList, getContext());
- mRecyclerView.setAdapter(mFavouriteWorkflowsAdapter);
+ mWorkflowList.addAll(workflowList);
+ mFavouriteWorkflowsAdapter.notifyDataSetChanged();
}
@Override
public void showEmptyWorkflow() {
tvNoWorkflowError.setVisibility(View.VISIBLE);
}
+
+ @Override
+ public void onItemClick(View childView, int position) {
+ Intent intent = new Intent(getActivity(),
FavouriteWorkflowDetailActivity.class);
+ intent.putExtra("id", mWorkflowList.get(position).getId());
--- End diff --
Make public static variable of putExtra string argument in this class.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---