app: fix paging source copypasta fail

Fixes: #211
Fixes: 654eb39877 ("app: de-duplicate paging sources")
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya
2021-04-16 02:17:09 +05:30
parent e57d0138a6
commit 65c1122bb1
@@ -37,7 +37,7 @@ constructor(
.cachedIn(viewModelScope)
val newestPosts =
Pager(PagingConfig(25)) {
LobstersPagingSource(getPostFetcher(newest = true)).also { hottestPostsPagingSource = it }
LobstersPagingSource(getPostFetcher(newest = true)).also { newestPostsPagingSource = it }
}
.flow
.cachedIn(viewModelScope)