From 555e9526b1408ca449bfcf85739c35f60cfb3bc5 Mon Sep 17 00:00:00 2001 From: Sohyun Date: Thu, 25 May 2023 13:58:55 +0900 Subject: [PATCH] [CHORE] #14-change name --- .../carrot/presentation/home/RecommendedJobAdapter.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/com/sopt/carrot/presentation/home/RecommendedJobAdapter.kt b/app/src/main/java/com/sopt/carrot/presentation/home/RecommendedJobAdapter.kt index ecaa190..ded3d36 100644 --- a/app/src/main/java/com/sopt/carrot/presentation/home/RecommendedJobAdapter.kt +++ b/app/src/main/java/com/sopt/carrot/presentation/home/RecommendedJobAdapter.kt @@ -10,12 +10,12 @@ import com.sopt.carrot.data.home.ResponseRecommendDto import com.sopt.carrot.databinding.ItemHomeRecommendedJobBinding class RecommendedJobAdapter() : - ListAdapter( + ListAdapter( diffUtil ) { - class CardAdapterViewHolder(private val binding: ItemHomeRecommendedJobBinding) : + class RecommendedJobAdapterViewHolder(private val binding: ItemHomeRecommendedJobBinding) : RecyclerView.ViewHolder(binding.root) { fun onBind(data: ResponseRecommendDto.Detail.Post) { @@ -51,16 +51,16 @@ class RecommendedJobAdapter() : override fun getItemCount(): Int = 4 - override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): CardAdapterViewHolder { + override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): RecommendedJobAdapterViewHolder { val binding = ItemHomeRecommendedJobBinding.inflate( LayoutInflater.from(parent.context), parent, false ) - return CardAdapterViewHolder(binding) + return RecommendedJobAdapterViewHolder(binding) } - override fun onBindViewHolder(holder: CardAdapterViewHolder, position: Int) { + override fun onBindViewHolder(holder: RecommendedJobAdapterViewHolder, position: Int) { holder.onBind(getItem(position) as ResponseRecommendDto.Detail.Post) }