mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-10 23:21:59 +01:00
preload the neighbouring library tab
beyondViewportPageCount = 1 keeps the next tab's paging flow subscribed, so Artists replays cached data instead of showing a spinner the first time it is opened.
This commit is contained in:
@@ -335,6 +335,7 @@ fun LibraryScreen(
|
||||
HorizontalPager(
|
||||
state = pagerState,
|
||||
modifier = Modifier.fillMaxSize(),
|
||||
beyondViewportPageCount = 1,
|
||||
) { page ->
|
||||
val pageTab = LibraryTab.entries[page]
|
||||
val resetKey = resetKeys[pageTab]
|
||||
|
||||
Reference in New Issue
Block a user