라이브 방이 19금일 때 제목 앞에 🔞 대신 방패(ic_shield)가 표시되도록 수정
This commit is contained in:
@@ -763,12 +763,14 @@ class LiveRoomActivity : BaseActivity<ActivityLiveRoomBinding>(ActivityLiveRoomB
|
||||
}
|
||||
|
||||
viewModel.roomInfoLiveData.observe(this) { response ->
|
||||
binding.tvTitle.text = if (response.isAdult) {
|
||||
"\uD83D\uDD1E ${response.title}"
|
||||
binding.ivShield.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
response.title
|
||||
View.GONE
|
||||
}
|
||||
|
||||
binding.tvTitle.text = response.title
|
||||
|
||||
binding.flDonation.visibility =
|
||||
if (response.creatorId != SharedPreferenceManager.userId) {
|
||||
View.VISIBLE
|
||||
|
||||
@@ -122,11 +122,14 @@ class LiveRoomDetailFragment(
|
||||
val locale = Locale(LanguageManager.getEffectiveLanguage(requireContext()))
|
||||
val wrappedContext = LocaleHelper.wrap(requireContext())
|
||||
|
||||
binding.tvTitle.text = if (response.isAdult) {
|
||||
"\uD83D\uDD1E ${response.title}"
|
||||
binding.tvTitle.text = response.title
|
||||
|
||||
binding.ivShield.visibility = if (response.isAdult) {
|
||||
View.VISIBLE
|
||||
} else {
|
||||
response.title
|
||||
View.GONE
|
||||
}
|
||||
|
||||
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