탐색 - 인기 크리에이터 설명 글 UI 수정
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user