mirror of
https://github.com/Ashinch/ReadYou.git
synced 2025-02-08 16:18:40 +01:00
fix(ui): load new items from paging data
This commit is contained in:
parent
37835a4964
commit
f06d8ce05e
@ -24,7 +24,7 @@ fun LazyListScope.ArticleList(
|
|||||||
onSwipeEndToStart: ((ArticleWithFeed) -> Unit)? = null,
|
onSwipeEndToStart: ((ArticleWithFeed) -> Unit)? = null,
|
||||||
) {
|
) {
|
||||||
for (index in 0 until pagingItems.itemCount) {
|
for (index in 0 until pagingItems.itemCount) {
|
||||||
when (val item = pagingItems.peek(index)) {
|
when (val item = pagingItems[index]) {
|
||||||
is ArticleFlowItem.Article -> {
|
is ArticleFlowItem.Article -> {
|
||||||
item(key = item.articleWithFeed.article.id) {
|
item(key = item.articleWithFeed.article.id) {
|
||||||
// if (item.articleWithFeed.article.isUnread) {
|
// if (item.articleWithFeed.article.isUnread) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user