Skip to content

Commit 8269d37

Browse files
committed
fix: ViewHolder의 bind 과정에서 visibility 변경 로직 수정
1 parent 5cc1850 commit 8269d37

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

presentation/src/main/java/com/stop/ui/route/TimeLineAdapter.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ class TimeLineAdapter : ListAdapter<Route, TimeLineViewHolder>(diffUtil) {
2828
companion object {
2929
private val diffUtil = object : DiffUtil.ItemCallback<Route>() {
3030
override fun areItemsTheSame(oldRoute: Route, newRoute: Route): Boolean {
31-
return false
3231
return oldRoute.sectionTime == newRoute.sectionTime &&
3332
oldRoute.mode == newRoute.mode
3433
}

presentation/src/main/java/com/stop/ui/route/TimeLineViewHolder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class TimeLineViewHolder(
3333
}
3434
else -> R.drawable.time_line_help_16
3535
}
36-
36+
binding.imageViewIcon.visibility = View.VISIBLE
3737

3838
val drawable = ContextCompat.getDrawable(binding.root.context, imageSrc)
3939
?: throw IllegalArgumentException()

0 commit comments

Comments
 (0)