|
|
@@ -46,7 +46,8 @@ class MaterialInstructionFragment :
|
|
|
}
|
|
|
holder.setText(R.id.tv_name, vo.instructionsTitle)
|
|
|
holder.setOnClickListener(R.id.root) {
|
|
|
- vo.fileUrl?.let {
|
|
|
+ val url = if (vo.fileType == FILE_TYPE_PDF) vo.fileUrlImg else vo.fileUrl
|
|
|
+ url?.let {
|
|
|
navigateTo(MaterialInstructionFragmentDirections.actionInstructionFragmentToInstructionDetailFragment(it))
|
|
|
}
|
|
|
}
|