We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2f48e5 commit d366113Copy full SHA for d366113
1 file changed
app/src/main/java/com/texthip/thip/ui/group/myroom/component/GroupDeadlineRoomSection.kt
@@ -84,9 +84,11 @@ fun GroupRoomDeadlineSection(
84
),
85
)
86
87
+ val actualPageCount = roomSections.size
88
+
89
val effectivePagerState = rememberPagerState(
- initialPage = 0,
- pageCount = { roomSections.size }
90
+ initialPage = 2,
91
+ pageCount = { Int.MAX_VALUE }
92
93
94
HorizontalPager(
@@ -95,7 +97,8 @@ fun GroupRoomDeadlineSection(
95
97
pageSpacing = pageSpacing,
96
98
modifier = Modifier.fillMaxWidth()
99
) { page ->
- val (sectionTitle, rooms) = roomSections[page]
100
+ val actualPage = page % actualPageCount
101
+ val (sectionTitle, rooms) = roomSections[actualPage]
102
103
val isCurrent = effectivePagerState.currentPage == page
104
val scale = if (isCurrent) 1f else 0.94f
0 commit comments