fix(creator): 라이브 empty 배치를 보정한다
This commit is contained in:
@@ -30,7 +30,6 @@ class CreatorChannelLiveFragment : BaseFragment<FragmentCreatorChannelLiveBindin
|
||||
private var lastContentLayoutKey: CreatorChannelLiveContentLayoutKey? = null
|
||||
private var sortPopup: CreatorChannelSortPopup? = null
|
||||
private var currentContentState: CreatorChannelLiveUiState.Content? = null
|
||||
private var emptyMinHeight: Int = 0
|
||||
private val creatorId: Long by lazy { arguments?.getLong(ARG_CREATOR_ID) ?: 0L }
|
||||
private val host: Host
|
||||
get() = requireActivity() as Host
|
||||
@@ -66,10 +65,8 @@ class CreatorChannelLiveFragment : BaseFragment<FragmentCreatorChannelLiveBindin
|
||||
viewModel.loadMore()
|
||||
}
|
||||
|
||||
fun onCreatorChannelLiveViewportHeightChanged(minHeight: Int) {
|
||||
emptyMinHeight = minHeight.coerceAtLeast(0)
|
||||
applyEmptyMinHeight()
|
||||
}
|
||||
@Suppress("UNUSED_PARAMETER")
|
||||
fun onCreatorChannelLiveViewportHeightChanged(minHeight: Int) = Unit
|
||||
|
||||
fun onCreatorChannelLiveOwnerCtaVisibilityChanged(isVisible: Boolean) = with(binding) {
|
||||
val bottomPadding = if (isVisible) {
|
||||
@@ -119,16 +116,11 @@ class CreatorChannelLiveFragment : BaseFragment<FragmentCreatorChannelLiveBindin
|
||||
layoutCreatorChannelLiveCurrentCard.isVisible = false
|
||||
rvCreatorChannelLiveReplays.isVisible = false
|
||||
layoutCreatorChannelLiveEmpty.isVisible = true
|
||||
applyEmptyMinHeight()
|
||||
tvCreatorChannelLiveErrorMessage.isVisible = false
|
||||
btnCreatorChannelLiveRetry.isVisible = false
|
||||
host.onCreatorChannelLiveContentChanged()
|
||||
}
|
||||
|
||||
private fun applyEmptyMinHeight() = with(binding) {
|
||||
layoutCreatorChannelLiveEmpty.minimumHeight = emptyMinHeight
|
||||
}
|
||||
|
||||
private fun bindError(state: CreatorChannelLiveUiState.Error) = with(binding) {
|
||||
currentContentState = null
|
||||
lastContentLayoutKey = null
|
||||
|
||||
Reference in New Issue
Block a user