mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-17 09:47:03 +05:30
Merge #184
184: Fixup lingering formatting issues r=msfjarvis a=msfjarvis bors r+ Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
commit
9c10cb02b8
4 changed files with 4 additions and 7 deletions
|
@ -29,7 +29,7 @@ class LobstersBottomNavTest : ScreenshotTest {
|
|||
DarkTestTheme {
|
||||
LobstersBottomNav(
|
||||
currentDestination = Destination.startDestination,
|
||||
navigateToDestination = { /*TODO*/},
|
||||
navigateToDestination = {},
|
||||
jumpToIndex = { _, _ -> },
|
||||
)
|
||||
}
|
||||
|
|
|
@ -5,8 +5,7 @@ import androidx.paging.PagingState
|
|||
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
|
||||
import dev.msfjarvis.lobsters.model.LobstersPost
|
||||
|
||||
class HottestPostsPagingSource
|
||||
constructor(
|
||||
class HottestPostsPagingSource(
|
||||
private val lobstersRepository: LobstersRepository,
|
||||
) : PagingSource<Int, LobstersPost>() {
|
||||
|
||||
|
|
|
@ -5,8 +5,7 @@ import androidx.paging.PagingState
|
|||
import dev.msfjarvis.lobsters.data.repo.LobstersRepository
|
||||
import dev.msfjarvis.lobsters.model.LobstersPost
|
||||
|
||||
class NewestPostsPagingSource
|
||||
constructor(
|
||||
class NewestPostsPagingSource(
|
||||
private val lobstersRepository: LobstersRepository,
|
||||
) : PagingSource<Int, LobstersPost>() {
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@ import kotlinx.coroutines.flow.MutableStateFlow
|
|||
import kotlinx.coroutines.flow.asStateFlow
|
||||
import kotlinx.coroutines.withContext
|
||||
|
||||
class LobstersRepository
|
||||
constructor(
|
||||
class LobstersRepository(
|
||||
private val lobstersApi: LobstersApi,
|
||||
private val lobstersDatabase: LobstersDatabase,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue