라이브
- 팔로우/팔로잉 버튼 변경
This commit is contained in:
@@ -32,7 +32,7 @@ class FollowingCreatorAdapter(
|
||||
|
||||
binding.ivNotification.visibility = View.VISIBLE
|
||||
if (item.isFollow) {
|
||||
binding.ivNotification.setImageResource(R.drawable.btn_notification_selected)
|
||||
binding.ivNotification.setImageResource(R.drawable.btn_following_big)
|
||||
binding.ivNotification.setOnClickListener {
|
||||
val index = items.indexOf(item)
|
||||
val copyItem = item.copy(isFollow = false)
|
||||
@@ -42,7 +42,7 @@ class FollowingCreatorAdapter(
|
||||
onClickUnRegisterNotification(item.creatorId)
|
||||
}
|
||||
} else {
|
||||
binding.ivNotification.setImageResource(R.drawable.btn_notification)
|
||||
binding.ivNotification.setImageResource(R.drawable.btn_follow_big)
|
||||
binding.ivNotification.setOnClickListener {
|
||||
val index = items.indexOf(item)
|
||||
val copyItem = item.copy(isFollow = true)
|
||||
|
||||
Reference in New Issue
Block a user