Skip to content

Commit 5fe3111

Browse files
committed
ReplyActivity: 修复加载更多故障
1 parent 88ce09a commit 5fe3111

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/kotlin/com/rayfantasy/icode/ui/activity/ReplyActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class ReplyActivity : ActivityBase() {
8989

9090
//生成加载条件,目前加载5个,方便测试
9191

92-
val condition = "WHERE ${if (!refresh && adapter.replyList.isNotEmpty()) "createat < ${adapter.replyList.last().createAt} " else ""}good_id=$id " +
92+
val condition = "WHERE ${if (!refresh && adapter.replyList.isNotEmpty()) "createat < ${adapter.replyList.last().createAt} AND " else ""}good_id=$id " +
9393
"ORDER BY createat DESC LIMIT 0, $LOAD_ONCE"
9494
request = PostUtil.findReply(condition, {
9595
reply_swip.isRefreshing = false

0 commit comments

Comments
 (0)