라이브 방 - 19금 방인 경우 제목 왼쪽에 19 표시
This commit is contained in:
@@ -558,6 +558,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
}
|
||||
|
||||
viewModel.roomInfoLiveData.observe(this) { response ->
|
||||
binding.iv19.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
View.GONE
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
binding.ivCover.load(response.coverImageUrl) {
|
||||
crossfade(true)
|
||||
|
@@ -14,6 +14,7 @@ data class GetRoomInfoResponse(
|
||||
@SerializedName("creatorNickname") val creatorNickname: String,
|
||||
@SerializedName("creatorProfileUrl") val creatorProfileUrl: String,
|
||||
@SerializedName("isFollowing") val isFollowing: Boolean,
|
||||
@SerializedName("isAdult") val isAdult: Boolean,
|
||||
@SerializedName("participantsCount") val participantsCount: Int,
|
||||
@SerializedName("totalAvailableParticipantsCount") val totalAvailableParticipantsCount: Int,
|
||||
@SerializedName("speakerList") val speakerList: List<LiveRoomMember>,
|
||||
|
Reference in New Issue
Block a user