Skip to content

Commit 22092bb

Browse files
authored
Merge pull request #118 from Stack-Knowledge/feature/117_modify_banner_time
🔀 :: (#117) Modify Banner Delay Time
2 parents 51d6209 + fb36167 commit 22092bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

feature/main/src/main/java/com/stackknowledge/main/component/StackKnowledgePager.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import kotlinx.coroutines.launch
3030
import kotlinx.coroutines.withContext
3131

3232
const val SCROLL_SPEED = 1000
33+
const val BANNER_DELAY_TIME = 4000L
3334

3435
@OptIn(ExperimentalFoundationApi::class)
3536
@Composable
@@ -45,7 +46,7 @@ fun StackKnowledgePager(
4546
LaunchedEffect(key1 = pagerState.currentPage) {
4647
launch {
4748
while (true) {
48-
delay(2000)
49+
delay(BANNER_DELAY_TIME)
4950
withContext(NonCancellable) {
5051
if (pagerState.currentPage + 1 in 0..Int.MAX_VALUE) {
5152
pagerState.animateScrollToPage(

0 commit comments

Comments
 (0)