We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a86701 commit fb36167Copy full SHA for fb36167
feature/main/src/main/java/com/stackknowledge/main/component/StackKnowledgePager.kt
@@ -30,6 +30,7 @@ import kotlinx.coroutines.launch
30
import kotlinx.coroutines.withContext
31
32
const val SCROLL_SPEED = 1000
33
+const val BANNER_DELAY_TIME = 4000L
34
35
@OptIn(ExperimentalFoundationApi::class)
36
@Composable
@@ -45,7 +46,7 @@ fun StackKnowledgePager(
45
46
LaunchedEffect(key1 = pagerState.currentPage) {
47
launch {
48
while (true) {
- delay(2000)
49
+ delay(BANNER_DELAY_TIME)
50
withContext(NonCancellable) {
51
if (pagerState.currentPage + 1 in 0..Int.MAX_VALUE) {
52
pagerState.animateScrollToPage(
0 commit comments