Skip to content

Commit

Permalink
fix: show tutories name
Browse files Browse the repository at this point in the history
  • Loading branch information
Veirt committed Dec 11, 2024
1 parent bc7188c commit d5bb421
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import com.tutortoise.tutortoise.databinding.ItemTutorCardBinding
import com.tutortoise.tutortoise.utils.Constants
import com.tutortoise.tutortoise.utils.formatWithThousandsSeparator

class RecommendationAdapter(private val recommendations: List<TutoriesRecommendation>, private val onItemClicked
class RecommendationAdapter(
private val recommendations: List<TutoriesRecommendation>, private val onItemClicked
: (TutoriesRecommendation) -> Unit
) :
RecyclerView.Adapter<RecommendationAdapter.RecommendationViewHolder>() {
Expand All @@ -22,7 +23,7 @@ class RecommendationAdapter(private val recommendations: List<TutoriesRecommenda

fun bind(recommendation: TutoriesRecommendation) {
binding.apply {
tvTutoriesName.text = recommendation.name
tvTutoriesName.text = recommendation.tutory_name
tvCategoryName.text = recommendation.category
tvHourlyRate.text =
root.context.resources.getString(
Expand Down

0 comments on commit d5bb421

Please sign in to comment.