fix(live-room): 라이브룸 팔로우 버튼 룩앤필을 정렬한다
This commit is contained in:
@@ -716,17 +716,23 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
isCreatorFollowNotifyEnabled = true
|
||||
}
|
||||
|
||||
binding.ivCreatorFollow.setImageResource(
|
||||
if (response.isFollowing) {
|
||||
if (isCreatorFollowNotifyEnabled) {
|
||||
R.drawable.btn_following_big
|
||||
} else {
|
||||
R.drawable.btn_following_no_alarm_big
|
||||
}
|
||||
val followTextRes = if (response.isFollowing) {
|
||||
R.string.screen_home_following
|
||||
} else {
|
||||
R.string.screen_home_follow
|
||||
}
|
||||
val followIconRes = if (response.isFollowing) {
|
||||
if (isCreatorFollowNotifyEnabled) {
|
||||
R.drawable.ic_live_creator_follow_alarm
|
||||
} else {
|
||||
R.drawable.btn_follow_big
|
||||
R.drawable.ic_live_creator_follow_no_alarm
|
||||
}
|
||||
)
|
||||
} else {
|
||||
R.drawable.ic_live_creator_follow_plus
|
||||
}
|
||||
|
||||
binding.tvCreatorFollow.text = getString(followTextRes)
|
||||
binding.ivCreatorFollowIcon.setImageResource(followIconRes)
|
||||
|
||||
binding.ivCreatorFollow.setOnClickListener {
|
||||
if (response.isFollowing) {
|
||||
|
||||
Reference in New Issue
Block a user