feat(profile): 채널 후원 비밀문구와 내 페이지 노출 조건을 정리한다
This commit is contained in:
@@ -347,6 +347,9 @@ class UserProfileActivity : BaseActivity<ActivityUserProfileBinding>(
|
||||
}
|
||||
|
||||
private fun setupChannelDonationView() {
|
||||
binding.layoutUserProfileChannelDonation.llChannelDonation.visibility =
|
||||
if (userId == SharedPreferenceManager.userId) View.GONE else View.VISIBLE
|
||||
|
||||
binding.layoutUserProfileChannelDonation.tvAll.setOnClickListener {
|
||||
val intent = Intent(applicationContext, UserProfileChannelDonationAllViewActivity::class.java)
|
||||
intent.putExtra(Constants.EXTRA_USER_ID, userId)
|
||||
@@ -358,7 +361,9 @@ class UserProfileActivity : BaseActivity<ActivityUserProfileBinding>(
|
||||
this,
|
||||
LayoutInflater.from(this),
|
||||
isLiveDonation = true,
|
||||
messageMaxLength = 100
|
||||
messageMaxLength = 100,
|
||||
secretToggleLabelResId = R.string.screen_user_profile_channel_donation_secret,
|
||||
applySecretMissionMessageHint = false
|
||||
) { can, message, isSecret ->
|
||||
viewModel.postChannelDonation(
|
||||
creatorId = userId,
|
||||
|
||||
@@ -28,6 +28,8 @@ class LiveRoomDonationDialog(
|
||||
layoutInflater: LayoutInflater,
|
||||
isLiveDonation: Boolean = false,
|
||||
messageMaxLength: Int = 1000,
|
||||
secretToggleLabelResId: Int = R.string.screen_live_room_secret_mission,
|
||||
applySecretMissionMessageHint: Boolean = true,
|
||||
onClickDonation: (Int, String, Boolean) -> Unit
|
||||
) {
|
||||
|
||||
@@ -103,10 +105,11 @@ class LiveRoomDonationDialog(
|
||||
|
||||
if (isLiveDonation) {
|
||||
dialogView.rlSecret.visibility = View.VISIBLE
|
||||
dialogView.tvSecret.text = activity.getString(secretToggleLabelResId)
|
||||
dialogView.tvSecret.setOnClickListener {
|
||||
val isSelected = dialogView.tvSecret.isSelected
|
||||
dialogView.tvSecret.isSelected = !isSelected
|
||||
dialogView.etDonationMessage.hint = if (!isSelected) {
|
||||
dialogView.etDonationMessage.hint = if (!isSelected && applySecretMissionMessageHint) {
|
||||
activity.getString(
|
||||
R.string.screen_live_room_secret_mission_hint_format,
|
||||
messageMaxLength
|
||||
|
||||
@@ -800,6 +800,7 @@
|
||||
<string name="screen_user_profile_channel_donation_button">Donate to Channel</string>
|
||||
<string name="screen_user_profile_channel_donation_all_title">View all Channel Donations</string>
|
||||
<string name="screen_user_profile_channel_donation_empty">No channel donations yet.</string>
|
||||
<string name="screen_user_profile_channel_donation_secret">Secret donation</string>
|
||||
<string name="screen_user_profile_cheer_label">Cheer</string>
|
||||
<string name="screen_user_profile_cheer_hint">Leave a cheer comment!</string>
|
||||
<string name="screen_user_profile_cheer_reply_hint">Leave a reply to this cheer!</string>
|
||||
|
||||
@@ -800,6 +800,7 @@
|
||||
<string name="screen_user_profile_channel_donation_button">チャンネルにギフトする</string>
|
||||
<string name="screen_user_profile_channel_donation_all_title">チャンネルギフトをすべて見る</string>
|
||||
<string name="screen_user_profile_channel_donation_empty">チャンネルギフトがありません。</string>
|
||||
<string name="screen_user_profile_channel_donation_secret">シークレットギフト</string>
|
||||
<string name="screen_user_profile_cheer_label">応援</string>
|
||||
<string name="screen_user_profile_cheer_hint">応援コメントを残してみましょう!</string>
|
||||
<string name="screen_user_profile_cheer_reply_hint">応援コメントに返信してみましょう!</string>
|
||||
|
||||
@@ -799,6 +799,7 @@
|
||||
<string name="screen_user_profile_channel_donation_button">채널 후원하기</string>
|
||||
<string name="screen_user_profile_channel_donation_all_title">채널 후원 전체보기</string>
|
||||
<string name="screen_user_profile_channel_donation_empty">채널 후원이 없습니다.</string>
|
||||
<string name="screen_user_profile_channel_donation_secret">비밀후원</string>
|
||||
<string name="screen_user_profile_cheer_label">응원</string>
|
||||
<string name="screen_user_profile_cheer_hint">응원댓글을 남겨보세요!</string>
|
||||
<string name="screen_user_profile_cheer_reply_hint">응원댓글에 답글을 남겨보세요!</string>
|
||||
|
||||
Reference in New Issue
Block a user