라이브 화면 문자열 리소스화
This commit is contained in:
@@ -123,7 +123,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
|
||||
setupView()
|
||||
|
||||
message = "라이브를 불러오고 있습니다."
|
||||
message = getString(R.string.screen_live_loading)
|
||||
viewModel.getLiveMain()
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
liveRecommendChannelAdapter.clear()
|
||||
liveReservationAdapter.clear()
|
||||
|
||||
message = "라이브를 불러오고 있습니다."
|
||||
message = getString(R.string.screen_live_loading)
|
||||
viewModel.getLiveMain()
|
||||
}
|
||||
|
||||
@@ -771,23 +771,23 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
LiveCancelDialog(
|
||||
activity = requireActivity(),
|
||||
layoutInflater = layoutInflater,
|
||||
title = "예약취소",
|
||||
hint = "취소사유를 입력하세요.",
|
||||
confirmButtonTitle = "예약취소",
|
||||
title = getString(R.string.screen_live_cancel_title),
|
||||
hint = getString(R.string.screen_live_cancel_hint),
|
||||
confirmButtonTitle = getString(R.string.screen_live_cancel_confirm),
|
||||
confirmButtonClick = {
|
||||
viewModel.cancelLive(roomId, it) {
|
||||
Toast.makeText(
|
||||
requireActivity(),
|
||||
"예약이 취소되었습니다.",
|
||||
getString(R.string.screen_live_cancel_success),
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
message = "라이브를 불러오고 있습니다."
|
||||
message = getString(R.string.screen_live_loading)
|
||||
liveNowAdapter.clear()
|
||||
liveReservationAdapter.clear()
|
||||
viewModel.getLiveMain()
|
||||
}
|
||||
},
|
||||
cancelButtonTitle = "닫기",
|
||||
cancelButtonTitle = getString(R.string.dialog_close),
|
||||
cancelButtonClick = {}
|
||||
).show(screenWidth)
|
||||
}
|
||||
@@ -795,7 +795,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
fun reservationRoom(roomId: Long) {
|
||||
viewModel.getRoomDetail(roomId) {
|
||||
if (it.manager.id == SharedPreferenceManager.userId) {
|
||||
showToast("내가 만든 라이브는 예약할 수 없습니다.")
|
||||
showToast(getString(R.string.screen_live_reservation_self_block))
|
||||
} else {
|
||||
if (it.isPrivateRoom) {
|
||||
LiveRoomPasswordDialog(
|
||||
@@ -815,11 +815,17 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
LivePaymentDialog(
|
||||
activity = requireActivity(),
|
||||
layoutInflater = layoutInflater,
|
||||
title = "${it.price.moneyFormat()}캔으로 예약",
|
||||
desc = "'${it.title}' 라이브에 참여하기 위해 결제합니다.",
|
||||
confirmButtonTitle = "예약하기",
|
||||
title = getString(
|
||||
R.string.screen_live_reservation_pay_title,
|
||||
it.price.moneyFormat()
|
||||
),
|
||||
desc = getString(
|
||||
R.string.screen_live_reservation_pay_desc,
|
||||
it.title
|
||||
),
|
||||
confirmButtonTitle = getString(R.string.screen_live_reservation_confirm),
|
||||
confirmButtonClick = { processLiveReservation(roomId) },
|
||||
cancelButtonTitle = "취소",
|
||||
cancelButtonTitle = getString(R.string.cancel),
|
||||
cancelButtonClick = {}
|
||||
).show(screenWidth)
|
||||
}
|
||||
@@ -924,7 +930,7 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
LivePaymentDialog(
|
||||
activity = requireActivity(),
|
||||
layoutInflater = layoutInflater,
|
||||
title = "유료 라이브 입장",
|
||||
title = getString(R.string.live_paid_title),
|
||||
startDateTime = if (hours >= 1) {
|
||||
dateFormat.format(beginDate)
|
||||
} else {
|
||||
@@ -935,19 +941,19 @@ class LiveFragment : BaseFragment<FragmentLiveBinding>(FragmentLiveBinding::infl
|
||||
} else {
|
||||
null
|
||||
},
|
||||
desc = "${it.price}캔을 차감하고\n라이브에 입장 하시겠습니까?",
|
||||
desc = getString(R.string.live_paid_desc, it.price),
|
||||
desc2 = if (hours >= 1) {
|
||||
"라이브를 시작한 지 ${hours}시간 ${mins}분이 지났습니다. 라이브에 입장 후 30분 이내에 라이브가 종료될 수도 있습니다."
|
||||
getString(R.string.live_paid_warning, hours, mins)
|
||||
} else {
|
||||
null
|
||||
},
|
||||
confirmButtonTitle = "결제 후 입장",
|
||||
confirmButtonTitle = getString(R.string.live_paid_confirm),
|
||||
confirmButtonClick = {
|
||||
handler.postDelayed({
|
||||
viewModel.enterRoom(roomId, onEnterRoomSuccess)
|
||||
}, 300)
|
||||
},
|
||||
cancelButtonTitle = "취소",
|
||||
cancelButtonTitle = getString(R.string.cancel),
|
||||
cancelButtonClick = {}
|
||||
).show(screenWidth)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user