in app/src/main/java/org/apache/taverna/mobile/ui/favouriteworkflowdetail/FavouriteWorkflowDetailFragment.java [239:269]
public void showWorkflowDetail(Workflow workflow) {
this.mWorkflow = workflow;
uploaderName.setText(workflow.getUploader().getContent());
date.setText(workflow.getUpdatedAt()
.substring(0, workflow.getUpdatedAt().indexOf(' ')));
type.setText(workflow.getType().getContent());
title.setText(workflow.getTitle());
description.loadData(workflow.getDescription(), "text/html", "utf-8");
Glide.with(getContext())
.load(workflow.getPreviewUri())
.diskCacheStrategy(DiskCacheStrategy.SOURCE)
.placeholder(R.drawable.placeholder)
.error(R.drawable.placeholder)
.into(workflowImage);
if (workflow.getLicenseType().getId() == null) {
licenceId = "";
} else {
licenceId = workflow.getLicenseType().getId();
}
if (mWorkflow.getType().getContent().equals(getString(R.string.t2_workflow_type))) {
fabRun.setVisibility(View.VISIBLE);
} else {
fabRun.setVisibility(View.GONE);
}
}