Skip to content

Commit

Permalink
修复 badge 无法正确显示 alpha 版的版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
aaa1115910 committed May 17, 2024
2 parents e406ad2 + ece3e1a commit c4bae10
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ class RecommendViewModel(
var loadCount = 0
val maxLoadMoreCount = 3
if (!loading) {
while (recommendVideoList.size < 14 && loadCount < maxLoadMoreCount) {
if (recommendVideoList.size == 0) {
// first load data
while (recommendVideoList.size < 14 && loadCount < maxLoadMoreCount) {
loadData()
if (loadCount != 0) logger.fInfo { "Load more recommend videos because items too less" }
loadCount++
}
} else {
loadData()
if (loadCount != 0) logger.fInfo { "Load more recommend videos because items too less" }
loadCount++
}
}
}
Expand Down

0 comments on commit c4bae10

Please sign in to comment.