라이브 상세, 라이브 룸 - 19금 표시를 이모지로 변경
This commit is contained in:
@@ -742,14 +742,12 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
}
|
||||
|
||||
viewModel.roomInfoLiveData.observe(this) { response ->
|
||||
binding.tv19.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
binding.tvTitle.text = if (response.isAdult) {
|
||||
"\uD83D\uDD1E ${response.title}"
|
||||
} else {
|
||||
View.GONE
|
||||
response.title
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
|
||||
binding.flDonation.visibility =
|
||||
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||
View.VISIBLE
|
||||
|
||||
@@ -122,13 +122,11 @@ class LiveRoomDetailFragment(
|
||||
val locale = Locale(LanguageManager.getEffectiveLanguage(requireContext()))
|
||||
val wrappedContext = LocaleHelper.wrap(requireContext())
|
||||
|
||||
binding.tv19.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
binding.tvTitle.text = if (response.isAdult) {
|
||||
"\uD83D\uDD1E ${response.title}"
|
||||
} else {
|
||||
View.GONE
|
||||
response.title
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
binding.tvDate.text = response.beginDateTimeUtc.convertDateFormat(
|
||||
from = "yyyy-MM-dd'T'HH:mm:ss",
|
||||
to = wrappedContext.getString(R.string.screen_live_room_detail_date_format),
|
||||
|
||||
Reference in New Issue
Block a user