in app/src/main/java/org/apache/taverna/mobile/ui/favouriteworkflow/FavouriteWorkflowsFragment.java [158:179]
public void onItemClick(View childView, int position) {
if (searchView.isIconified() && TextUtils.isEmpty(searchView.getQuery())) {
if (mFavouriteWorkflowsAdapter.getItem(position) != null && position != -1) {
Intent intent = new Intent(getActivity(), FavouriteWorkflowDetailActivity.class);
intent.putExtra(Constants.WORKFLOW_ID, mFavouriteWorkflowsAdapter
.getItem(position).getId());
intent.putExtra(Constants.WORKFLOW_TITLE, mFavouriteWorkflowsAdapter
.getItem(position).getTitle());
startActivity(intent);
}
} else {
if (mSearchFavouriteWorkflowAdapter.getItem(position) != null && position != -1) {
Intent intent = new Intent(getActivity(), FavouriteWorkflowDetailActivity.class);
intent.putExtra(Constants.WORKFLOW_ID, mSearchFavouriteWorkflowAdapter
.getItem(position).getId());
intent.putExtra(Constants.WORKFLOW_TITLE, mSearchFavouriteWorkflowAdapter
.getItem(position).getTitle());
startActivity(intent);
}
}
}