탐색 - 인기 크리에이터 설명 글 UI 수정

This commit is contained in:
2023-10-15 06:53:39 +09:00
parent e6b8e55966
commit 3e7d06a2aa
3 changed files with 30 additions and 16 deletions

View File

@@ -34,7 +34,7 @@ class AudioContentRankingAllViewModel(
private var isLast = false
fun getAudioContentRanking() {
if (!_isLoading.value!! && !isLast) {
if (!_isLoading.value!! && !isLast && page <= 5) {
_isLoading.value = true
compositeDisposable.add(
repository.getContentRanking(
@@ -53,7 +53,6 @@ class AudioContentRankingAllViewModel(
if (it.data.items.isNotEmpty()) {
page += 1
isLast = false
_contentRankingItemsLiveData.value = it.data.items
} else {
isLast = true

View File

@@ -59,10 +59,10 @@ class ExplorerAdapter(
private fun setDesc(item: GetExplorerSectionResponse) {
if (item.desc != null) {
binding.tvDesc.visibility = View.VISIBLE
binding.llDesc.visibility = View.VISIBLE
binding.tvDesc.text = item.desc
} else {
binding.tvDesc.visibility = View.GONE
binding.llDesc.visibility = View.GONE
}
}